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>
This commit is contained in:
Dan McGee 2008-04-20 12:28:44 -05:00 committed by Junio C Hamano
parent 3903c6189d
commit 799596a5d0

View File

@ -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 ()
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 ()
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 ()
__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