Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include hash of resolved object in object stat output #1505

Merged
merged 1 commit into from
Jul 21, 2015

Conversation

whyrusleeping
Copy link
Member

this way i can do: ipfs object stat a/b/c/d/e/f/g and get the hash of g. Essentially exposing core.Resolve through the API.

License: MIT
Signed-off-by: Jeromy jeromyj@gmail.com

@whyrusleeping whyrusleeping added the status/in-progress In progress label Jul 21, 2015
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@@ -124,7 +131,7 @@ func SubtestNodeStat(t *testing.T, n *Node) {
}

if expected != *actual {
t.Error("n.Stat incorrect.\nexpect: %s\nactual: %s", expected, actual)
t.Errorf("n.Stat incorrect.\nexpect: %s\nactual: %s", expected, actual)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

@jbenet
Copy link
Member

jbenet commented Jul 21, 2015

@whyrusleeping lgtm. /wish stat had a sharness test

jbenet added a commit that referenced this pull request Jul 21, 2015
include hash of resolved object in object stat output
@jbenet jbenet merged commit bd809e6 into master Jul 21, 2015
@jbenet jbenet removed the status/in-progress In progress label Jul 21, 2015
@jbenet jbenet deleted the object-stat-hash branch July 21, 2015 20:15
@jbenet jbenet modified the milestone: IPFS 0.3.6 Jul 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants