Browse Source

completion: remove use of dashed git commands

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Dan McGee 17 years ago committed by Junio C Hamano
parent
commit
799596a5d0
  1. 8
      contrib/completion/git-completion.bash

8
contrib/completion/git-completion.bash

@ -152,7 +152,7 @@ __git_heads () @@ -152,7 +152,7 @@ __git_heads ()
done
return
fi
for i in $(git-ls-remote "$1" 2>/dev/null); do
for i in $(git ls-remote "$1" 2>/dev/null); do
case "$is_hash,$i" in
y,*) is_hash=n ;;
n,*^{}) is_hash=y ;;
@ -173,7 +173,7 @@ __git_tags () @@ -173,7 +173,7 @@ __git_tags ()
done
return
fi
for i in $(git-ls-remote "$1" 2>/dev/null); do
for i in $(git ls-remote "$1" 2>/dev/null); do
case "$is_hash,$i" in
y,*) is_hash=n ;;
n,*^{}) is_hash=y ;;
@ -200,7 +200,7 @@ __git_refs () @@ -200,7 +200,7 @@ __git_refs ()
done
return
fi
for i in $(git-ls-remote "$dir" 2>/dev/null); do
for i in $(git ls-remote "$dir" 2>/dev/null); do
case "$is_hash,$i" in
y,*) is_hash=n ;;
n,*^{}) is_hash=y ;;
@ -223,7 +223,7 @@ __git_refs2 () @@ -223,7 +223,7 @@ __git_refs2 ()
__git_refs_remotes ()
{
local cmd i is_hash=y
for i in $(git-ls-remote "$1" 2>/dev/null); do
for i in $(git ls-remote "$1" 2>/dev/null); do
case "$is_hash,$i" in
n,refs/heads/*)
is_hash=y

Loading…
Cancel
Save