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

ipfs-add: Add flag to exclude paths #1451

Open
kyrias opened this issue Jul 6, 2015 · 6 comments
Open

ipfs-add: Add flag to exclude paths #1451

kyrias opened this issue Jul 6, 2015 · 6 comments
Labels
help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature

Comments

@kyrias
Copy link

kyrias commented Jul 6, 2015

I started adding my website to IPFS, but there are some big directories that don't strictly belong in my website, so it would be useful to have an exclude flag to specify paths to files and directories to exclude from the add operation.

@whyrusleeping
Copy link
Member

we should be getting support for an .ipfsignore file soon: #1448

@jbenet
Copy link
Member

jbenet commented Jul 7, 2015

@kyrias would love to hear more things you run into. any UX feedback here would be very helpful

@kyrias
Copy link
Author

kyrias commented Jul 13, 2015

.ipfsignore would be useful indeed, though it feels like an --exclude flag would be a good complement. Sometimes you might only want to exclude something once, or just add something once, and don't want to have to add the exclude to an ignore file.

@jbenet
Copy link
Member

jbenet commented Jul 14, 2015

@kyrias the .ipfsignore changeset was harder than expected, so we punted for a bit.

we did merge in hidden files -- so this is a (nasty) hack around for now:

mv pls_ignore_this .pls_ignore_this
ipfs add -r .
mv .pls_ignore_this pls_ignore_this

hough it feels like an --exclude flag would be a good complement. Sometimes you might only want to exclude something once, or just add something once,

yeah maybe.

or, what do you think of a staging area, like git?

@wking
Copy link
Contributor

wking commented Jul 14, 2015

On Mon, Jul 13, 2015 at 06:20:50PM -0700, Juan Batiz-Benet wrote:

or, what do you think of a staging area, like git?

Having separate ‘add’ and ‘commit’ commands makes sense, but I don't
see the point of a separate pre-add staging command ;). I'm agnostic
on whether we have an --exclude in addition to .ipfsignore.

@em-ly em-ly added the kind/enhancement A net-new feature or improvement to an existing feature label Aug 25, 2016
@whyrusleeping whyrusleeping added the help wanted Seeking public contribution on this issue label Aug 26, 2016
@AlbertoElias
Copy link

Any updates on this? Haven't found any docs about ignoring files/directories. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

6 participants