@matheusbsbs / matheus-bagliano / commits / 799596a5d0
Fork 0

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>

Dan McGee committed Apr 20, 2008 at 12:28 UTC 799596a5d06f2abddef75940604d00c4bd8ba849
1 file changed +4 -4
contrib/completion/git-completion.bash
+4 -4
@@ -152,7 +152,7 @@ __git_heads ()
152 done
153 return
154 fi
155 - for i in $(git-ls-remote "$1" 2>/dev/null); do
155 + for i in $(git ls-remote "$1" 2>/dev/null); do
156 case "$is_hash,$i" in
157 y,*) is_hash=n ;;
158 n,*^{}) is_hash=y ;;
@@ -173,7 +173,7 @@ __git_tags ()
173 done
174 return
175 fi
176 - for i in $(git-ls-remote "$1" 2>/dev/null); do
176 + for i in $(git ls-remote "$1" 2>/dev/null); do
177 case "$is_hash,$i" in
178 y,*) is_hash=n ;;
179 n,*^{}) is_hash=y ;;
@@ -200,7 +200,7 @@ __git_refs ()
200 done
201 return
202 fi
203 - for i in $(git-ls-remote "$dir" 2>/dev/null); do
203 + for i in $(git ls-remote "$dir" 2>/dev/null); do
204 case "$is_hash,$i" in
205 y,*) is_hash=n ;;
206 n,*^{}) is_hash=y ;;
@@ -223,7 +223,7 @@ __git_refs2 ()
223 __git_refs_remotes ()
224 {
225 local cmd i is_hash=y
226 - for i in $(git-ls-remote "$1" 2>/dev/null); do
226 + for i in $(git ls-remote "$1" 2>/dev/null); do
227 case "$is_hash,$i" in
228 n,refs/heads/*)
229 is_hash=y