Open Udayan12167 opened 9 years ago
Do you happen to know if msysgit's prompt shows staged changes, unstaged changes, or both? If it only shows one, you could also parse the output of git diff --shortstat [--cached]
.
At least the git shell from the GitHub app shows both, like:
[Makman2/colorama +0 ~1 -0]>
Where the first one is files added (aka unstaged changes), second files changed and last one files removed.
I like this idea :)
@jimeh I have a working prototype on https://github.com/Makman2/git-aware-prompt/tree/Makman2/file-status But to make it easier for the user I changed nearly the complete git-aware-prompt "subsystem". I also have an install-script :D
Git shell on windows shows file status as well with the branch info. We could easily add that by applying parsing to the git status call where we check for a dirty branch. For performance reasons we could keep it optional. If you dont get time to do that, I might in a little while.