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

[PATCH 3/5] git-completion.bash: complete branch.*.rebase as boolean

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Apr 21, 2013, 13:05 UTC
Message-ID
<1366549551-18763-4-git-send-email-artagnon@gmail.com>
In-Reply-To
<1366549551-18763-1-git-send-email-artagnon@gmail.com>

6fac1b83 (completion: add missing config variables, 2009-06-29) added "rebase" to the list of completions for "branch.*.*", but forgot to specify completions for the values that this configuration variable can take (namely "false" and "true"). Fix this.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 contrib/completion/git-completion.bash | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index f799dc8..843273c 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1825,6 +1825,10 @@ _git_config ()
 		__gitcomp_nl "$(__git_refs)"
 		return
 		;;
+	branch.*.rebase)
+		__gitcomp "false true"
+		return
+		;;
 	remote.*.fetch)
 		local remote="${prev#remote.}"
 		remote="${remote%.fetch}"
-- 
1.8.2.1.501.gd2949c7
Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 4 of 10 in “Minor additions to git-completion.bash”
  1. 0/5 Minor additions to git-completion.bashRamkumar Ramachandra, Apr 21, 2013
  2. 1/5 git-completion.bash: lexical sorting for diff.statGraphWidthRamkumar Ramachandra, Apr 21, 2013
  3. 2/5 git-completion.bash: add diff.submodule to config listRamkumar Ramachandra, Apr 21, 2013
  4. 3/5 git-completion.bash: complete branch.*.rebase as booleanRamkumar Ramachandra, Apr 21, 2013
  5. 4/5 git-completion.bash: add branch.*.pushremote to config listRamkumar Ramachandra, Apr 21, 2013
  6. 5/5 git-completion.bash: add remote.pushdefault to config listRamkumar Ramachandra, Apr 21, 2013
  7. Ramkumar RamachandraApr 24, 2013
  8. Felipe ContrerasApr 27, 2013
  9. Junio C HamanoApr 28, 2013
  10. Felipe ContrerasApr 29, 2013

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.