Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make counting ALL untracked files optional #214

Merged
merged 2 commits into from
Dec 4, 2015

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants