Skip to content

Commit

Permalink
completion: remove use of dashed git commands
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan McGee authored and Junio C Hamano committed Apr 22, 2008
1 parent 3903c61 commit 799596a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;;
Expand All @@ -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 ;;
Expand All @@ -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 ;;
Expand All @@ -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
Expand Down

0 comments on commit 799596a

Please sign in to comment.