Skip to content

Conversation

root42
Copy link

@root42 root42 commented Dec 2, 2015

I am working via sshfs on a large repository which mixes source files with build artifacts. Hence I get potentially lots and lots of untracked files. Sometimes the git status takes 5 minutes to complete, if the connection is bad. I also do not need this information.

So I made the parameter for git status --untracked-files configurable. There is now a new environment variable, called GIT_SHOW_UNTRACKED_FILES, which if set is passed to git status. If it is not set, default behaviour of "all" will apply. Setting it to "no" or "normal" will speed things up a lot.

@magicmonty
Copy link
Owner

Thanks, could you please add a remark in the README for documentation to?

@root42
Copy link
Author

root42 commented Dec 4, 2015

Done.

@magicmonty
Copy link
Owner

Thanks

magicmonty added a commit that referenced this pull request Dec 4, 2015
Make counting ALL untracked files optional
@magicmonty magicmonty merged commit 2d9ec22 into magicmonty:master Dec 4, 2015
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

Successfully merging this pull request may close these issues.

2 participants