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

File status with branch name and status. #25

Open
Udayan12167 opened this issue Aug 11, 2015 · 4 comments
Open

File status with branch name and status. #25

Udayan12167 opened this issue Aug 11, 2015 · 4 comments

Comments

@Udayan12167
Copy link

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.

@lethosor
Copy link
Contributor

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].

@Makman2
Copy link

Makman2 commented Aug 12, 2015

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.

@jimeh
Copy link
Owner

jimeh commented Aug 15, 2015

I like this idea :)

@Makman2
Copy link

Makman2 commented Aug 16, 2015

@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

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

4 participants