I looked for a git bugzilla but could not find one.
The feature I want is for ‘git status’ to show you if you are in the middle if a rebase.
I looked for a git bugzilla but could not find one.
The feature I want is for ‘git status’ to show you if you are in the middle if a rebase.
February 26, 2011 at 6:26 pm |
I agree that it would be very useful for this to be shown in git-status.
I have it in my prompt using __git_ps1() from /etc/bash_completion.d/git. It looks like all that does for REBASE/MERGE/BISECT status is check for the existence of certain files in the .git directory.
February 28, 2011 at 3:23 pm |
Josh Stone is 100% right. Just use __git_ps1 to do it. For instance, my PS1 variable (exported from ~/.bashrc) looks like:
PS1=’${debian_chroot:+($debian_chroot)}\[33[01;32m\]\u@\h\[33[00m\]:\[33[01;34m\]\w\[33[00m\]\$$(__git_ps1) ‘
February 28, 2011 at 4:30 pm |
Guys, that is an awesome feature. Here is what I did:
yum -y install bash-completion
and I added this to my ~/.bashrc PS1=’[\u@\h \W$(__git_ps1)]\$’
Thanks for the tip