diff options
author | 2008-03-08 20:10:05 -0800 | |
---|---|---|
committer | 2008-03-08 20:10:05 -0800 | |
commit | dabc42c7134596092bf59adb83c79b09f729c290 (patch) | |
tree | 0e14f06997bf7a70cbcda9b1481b8295098b5f5e /contrib/completion | |
parent | Merge branch 'cr/reset-parseopt' (diff) | |
parent | am: --rebasing (diff) | |
download | tgif-dabc42c7134596092bf59adb83c79b09f729c290.tar.xz |
Merge branch 'jc/am'
* jc/am:
am: --rebasing
am: remove support for -d .dotest
am: read from the right mailbox when started from a subdirectory
Diffstat (limited to 'contrib/completion')
-rwxr-xr-x | contrib/completion/git-completion.bash | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 49e6df0965..848c067b57 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -70,7 +70,15 @@ __git_ps1 () local b if [ -d "$g/../.dotest" ] then - r="|AM/REBASE" + if test -f "$g/../.dotest/rebasing" + then + r="|REBASE" + elif test -f "$g/../.dotest/applying" + then + r="|AM" + else + r="|AM/REBASE" + fi b="$(git symbolic-ref HEAD 2>/dev/null)" elif [ -f "$g/.dotest-merge/interactive" ] then |