git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] completion: remove use of dashed git commands

From
Dan McGee <dpmcgee@gmail.com>
Date
Apr 20, 2008, 17:28 UTC
Message-ID
<1208712525-1747-1-git-send-email-dpmcgee@gmail.com>
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
---
 contrib/completion/git-completion.bash |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 4d81963..3f78630 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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
-- 
1.5.5
Next: Dan McGee
Message 1 of 11 in “completion: remove use of dashed git commands”
  1. completion: remove use of dashed git commandsDan McGee, Apr 20, 2008
  2. completion: allow 'git remote' subcommand completionDan McGee, Apr 20, 2008
  3. Shawn O. PearceApr 20, 2008
  4. completion: allow 'git remote' subcommand completionDan McGee, Apr 20, 2008
  5. Johannes SchindelinApr 20, 2008
  6. Dan McGeeApr 20, 2008
  7. Johannes SchindelinApr 20, 2008
  8. Dan McGeeApr 20, 2008
  9. Matthieu MoyApr 20, 2008
  10. Junio C HamanoApr 20, 2008
  11. Shawn O. PearceApr 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.