Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
completion: remove use of dashed git commands
author
Dan McGee
<dpmcgee@gmail.com>
Sun, 20 Apr 2008 17:28:44 +0000
(12:28 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 22 Apr 2008 06:33:23 +0000
(23:33 -0700)
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>
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3903c61
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index fd654bdc9c97c59e9ba0d0164952d40188cbfea7..6012047ee55cb846f1ab05a9bca13aafe3267f64 100755
(executable)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-152,7
+152,7
@@
__git_heads ()
done
return
fi
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 ;;
case "$is_hash,$i" in
y,*) is_hash=n ;;
n,*^{}) is_hash=y ;;
@@
-173,7
+173,7
@@
__git_tags ()
done
return
fi
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 ;;
case "$is_hash,$i" in
y,*) is_hash=n ;;
n,*^{}) is_hash=y ;;
@@
-200,7
+200,7
@@
__git_refs ()
done
return
fi
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 ;;
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
__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
case "$is_hash,$i" in
n,refs/heads/*)
is_hash=y