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

[PATCH 2/5] bash: removed unnecessary checks for long options with argument

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Jan 16, 2009, 16:01 UTC
Message-ID
<1232121717-10145-1-git-send-email-szeder@ira.uka.de>

__gitcomp takes care of it since 5447aac7 (bash: fix long option with argument double completion, 2008-03-05)

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 contrib/completion/git-completion.bash |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 4292b23..c35f86d 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -643,7 +643,6 @@ _git_branch ()
 	done
 
 	case "${COMP_WORDS[COMP_CWORD]}" in
-	--*=*)	COMPREPLY=() ;;
 	--*)
 		__gitcomp "
 			--color --no-color --verbose --abbrev= --no-abbrev
@@ -1692,7 +1691,6 @@ _git ()
 
 	if [ -z "$command" ]; then
 		case "${COMP_WORDS[COMP_CWORD]}" in
-		--*=*) COMPREPLY=() ;;
 		--*)   __gitcomp "
 			--paginate
 			--no-pager
-- 
1.6.1.198.geb475f
Next: SZEDER Gábor
Message 1 of 2 in “bash: removed unnecessary checks for long options with argument”
  1. 2/5 bash: removed unnecessary checks for long options with argumentSZEDER Gábor, Jan 16, 2009
  2. SZEDER GáborJan 16, 2009

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.