summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f50edca)
raw | patch | inline | side by side (parent: f50edca)
author | Marius Storm-Olsen <git@storm-olsen.com> | |
Sat, 21 Feb 2009 14:48:43 +0000 (15:48 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 25 Feb 2009 05:45:04 +0000 (21:45 -0800) |
Signed-off-by: Marius Storm-Olsen <git@storm-olsen.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash | patch | blob | history |
index a61d852a140e1027e004a899ad58d51cd76c6070..dd393cd00461eab96a9725b66b5810a13a354a5e 100755 (executable)
local w
local i
+ local c
if [ "true" = "$(git rev-parse --is-inside-git-dir 2>/dev/null)" ]; then
- b="GIT_DIR!"
+ if [ "true" = "$(git config --bool core.bare 2>/dev/null)" ]; then
+ c="BARE:"
+ else
+ b="GIT_DIR!"
+ fi
elif [ "true" = "$(git rev-parse --is-inside-work-tree 2>/dev/null)" ]; then
if [ -n "${GIT_PS1_SHOWDIRTYSTATE-}" ]; then
if [ "$(git config --bool bash.showDirtyState)" != "false" ]; then
fi
fi
- local c
-
- if [ "true" = "$(git config --bool core.bare 2>/dev/null)" ]; then
- c="BARE:"
- fi
-
if [ -n "$b" ]; then
if [ -n "${1-}" ]; then
printf "$1" "$c${b##refs/heads/}$w$i$r"