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

Ignore --assume-unchanged files? #233

Open
Gabriel-p opened this issue Jun 18, 2015 · 3 comments
Open

Ignore --assume-unchanged files? #233

Gabriel-p opened this issue Jun 18, 2015 · 3 comments

Comments

@Gabriel-p
Copy link

I know that the flag "show_markers_on_untracked_file": false is used to hide icons from files marked as untracked.

Should this option also work on --assume-unchanged files? For what I've seen it does not affect those files and icons are still displayed.

@jisaacks
Copy link
Owner

The only way I think this would be possible, would be to first check with git, to see if git considers the file as changed before processing it. -- That would break git gutter for files that have been changed but not saved yet.

@Gabriel-p
Copy link
Author

Couldn't you get a list of --assume-unchanged files from:

git ls-files -v | grep '^[[:lower:]]'

(taken from http://stackoverflow.com/questions/2363197/can-i-get-a-list-of-files-marked-assume-unchanged) every time the package is loaded, and then simply exclude those files from processing?

@jisaacks
Copy link
Owner

@Gabriel-p that looks like it would work. I tried to look up the git docs to see if there was a way to get a list of the assume unchanged files and came up short.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants