diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-24 23:58:23 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-24 23:58:23 +0300 |
commit | 099e50b17e6376758468ff226a443a1195a2f76c (patch) | |
tree | 9826d0b48504ad58f5ba700836aea77ff650bad2 /prompt | |
parent | cleanup (diff) | |
download | git-prompt-099e50b17e6376758468ff226a443a1195a2f76c.tar.gz git-prompt-099e50b17e6376758468ff226a443a1195a2f76c.tar.bz2 git-prompt-099e50b17e6376758468ff226a443a1195a2f76c.zip |
minor
Diffstat (limited to 'prompt')
-rwxr-xr-x | prompt | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -344,7 +344,13 @@ git_module() { detached=detached branch="<detached:`git-name-rev --name-only HEAD 2>/dev/null`>" fi + # + # another method of above: + # branch=$(git-symbolic-ref -q HEAD || { echo -n "detached:" ; git-name-rev --name-only HEAD 2>/dev/null; } ) + # branch=${branch#refs/heads/} + # + ### OP labels if [[ "$op" == "merge" ]] ; then branch="$op: $branch <~ $(git-name-rev --name-only $(<$git_dir/MERGE_HEAD))" |