git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c72b06b
)
Restore more old Git completion behaviour.
author
Iain Patterson
<me@iain.cx>
Mon, 28 Jun 2010 09:54:05 +0000
(10:54 +0100)
committer
Iain Patterson
<me@iain.cx>
Mon, 28 Jun 2010 09:58:18 +0000
(10:58 +0100)
If we can't figure out a head print nothing rather than (unknown) as
this can get annoying when becoming other users and/or changing into
trees without permissions on the .git directory.
.profile.d/git-completion.bashrc
patch
|
blob
|
history
diff --git
a/.profile.d/git-completion.bashrc
b/.profile.d/git-completion.bashrc
index
5966932
..
481112d
100644
(file)
--- a/
.profile.d/git-completion.bashrc
+++ b/
.profile.d/git-completion.bashrc
@@
-119,9
+119,7
@@
__git_ps1 ()
git describe --exact-match HEAD ;;
esac 2>/dev/null)" ||
- b="$(cut -c1-7 "$g/HEAD" 2>/dev/null)..." ||
- b="unknown"
- b="($b)"
+ b="$(cut -c1-7 "$g/HEAD" 2>/dev/null)..." || return
}
fi