-
-
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 a --no-pin option to ipfs add
#1931
Conversation
I still think this should maybe be called |
Totally reasonable. I'll try to defend the code as implemented by pointing out that seems to be precedent in ipfs for options that, when present, turn off some functionality:
(Ok, I admit that's the only example I could find). I don't think I care either way, except that |
i think in this case, we do want |
Ok! But one small problem -- In the
This was added in 107409c, but this commit is not part of the |
+1 |
@eminence @whyrusleeping is rebasing dev0.4.0 shortly |
764bef9
to
1bbc472
Compare
2a978c6
to
b4c4591
Compare
Ok, I force pushed a commit, due to the dev0.4.0 rebase. Please take another look. Thanks! |
This LGTM |
|
||
if !pin_found { // default | ||
dopin = true | ||
} |
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.
is there a way to set the default on the commands lib itself? (am not sure.)
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.
There is the js trick !!dopin
, don't know if it works in golang.
This LGTM. i'll merge. we can always improve #1931 (comment) later |
Add a --no-pin option to `ipfs add`
Implements a solution for #1908
This PR replaces #1909