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

find_git_dirty() does not show if there are untracked files #7

Closed
eacousineau opened this issue Mar 22, 2013 · 3 comments
Closed

find_git_dirty() does not show if there are untracked files #7

eacousineau opened this issue Mar 22, 2013 · 3 comments

Comments

@eacousineau
Copy link
Contributor

I realize now that git diff-files and git diff-index do not seem to catch untracked files.
Checked their man pages and tried a few things, but could not find anything obvious.

@jimeh
Copy link
Owner

jimeh commented Mar 22, 2013

Hmmm, maybe git status is the best way to go after all. Personally I've been using ZSH and the oh-my-zsh addon scripts, and here's how oh-my-zsh does it: https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/git.zsh#L10-22

@eacousineau
Copy link
Contributor Author

Truth, sir.
And that ZSH code looks pretty awesome, and compatible with bash for the most part. I'll try tinkering with it to get it to work with bash - thanks for the heads up!

@jimeh
Copy link
Owner

jimeh commented Apr 25, 2013

Fixed in b874b75.

@jimeh jimeh closed this as completed Apr 25, 2013
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

2 participants