-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add offset option to cat command #4538
Conversation
core/commands/cat.go
Outdated
if err != nil { | ||
return nil, 0, err | ||
} | ||
offset = offset - count |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt this always result in offset being 0?
test/sharness/t0040-add-and-cat.sh
Outdated
test_cmp expected actual | ||
' | ||
|
||
test_expect_success "ipfs cat multipule hashes with offset succeeds" ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small typo
a couple things, then LGTM. |
bc17543
to
2fcfbd8
Compare
Allow an offset option to be passed to cat command License: MIT Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT Signed-off-by: ForrestWeston <forrest@protocol.ai>
2fcfbd8
to
8a8c9b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We'll also want a length option (so we can read a chunk) but we can do that later.
No description provided.