Skip to content

--ignore option disappeared #140

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

Open
sherpadawan opened this issue Apr 12, 2017 · 6 comments
Open

--ignore option disappeared #140

sherpadawan opened this issue Apr 12, 2017 · 6 comments

Comments

@sherpadawan
Copy link

In 0.5.1 version grive does not provides --ignore option :/

@vitalif
Copy link
Owner

vitalif commented Apr 12, 2017

sorry :)
a lot of people didn't like it and I removed it in favor of new .griveignore feature.

@MangoMango666
Copy link

I understand Sherpadawan :
Options at the command line can be called according to circumstances (at a specific moment, I want to be able to ignore certain files), while a parameter file such as .griveignore is a setting that is used every time.

I suppose keeping both the --ignore option and the .griveignore was a bit complicated.
It would have been useful, though.

@sherpadawan
Copy link
Author

sherpadawan commented Apr 12, 2017 via email

@callegar
Copy link

callegar commented Dec 19, 2017

A notable issue is that .griveignore does not seem to have sufficient flexbility to handle the cases that were supposed to be manageable by regular expressions.

For instance: I have a setup with a directory Foo being the only one I want to sync. However, Foo contains Bar that is huge and I do not want to sync. How do I specify this?

.gitignore containing

 *
 !Foo
 Foo/Bar

does not work

.gitignore containing

 Foo/Bar

with grive invoked with -s Foo does not work either. In both cases, Bar is synchronized.

@MaikoID
Copy link

MaikoID commented Jan 23, 2018

If anyone could say to me what regex I need to put in the .griveignore file to skip .git directores I would be greatful.
I always have used the --ignore option that is missing now: grive --ignore='(.* link)|(.*.git)'
this way I could ignore all .git directories and folder that ends with ' link' in its name.
How can I have the same effect using the .griveignore ?

[EDIT]
I find out that it's not a perl regex it's a .gitignore sintax, please update the docs. So it became:
**/.git

@MangoMango666
Copy link

Use the .griveignore file instead of the -ignore option.

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

No branches or pull requests

5 participants