From: Ted Pavlic Date: Wed, 11 Feb 2009 18:03:23 +0000 (-0500) Subject: completion: For consistency, change "git rev-parse" to __gitdir calls X-Git-Tag: v1.6.3-rc0~214^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fa26a401bed5967d6118ac430c5c5f4707c54386;p=git.git completion: For consistency, change "git rev-parse" to __gitdir calls Signed-off-by: Ted Pavlic Acked-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index f44f63cfe..6bbe09ab9 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -80,7 +80,7 @@ __gitdir () # returns text to add to bash PS1 prompt (includes branch name) __git_ps1 () { - local g="$(git rev-parse --git-dir 2>/dev/null)" + local g="$(__gitdir)" if [ -n "$g" ]; then local r local b @@ -1797,7 +1797,7 @@ _gitk () __git_has_doubledash && return local cur="${COMP_WORDS[COMP_CWORD]}" - local g="$(git rev-parse --git-dir 2>/dev/null)" + local g="$(__gitdir)" local merge="" if [ -f $g/MERGE_HEAD ]; then merge="--merge"