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

[PATCH 4/5] git-completion.bash: add branch.*.pushremote to config list

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Apr 29, 2013, 12:49 UTC
Message-ID
<1367239781-5232-5-git-send-email-artagnon@gmail.com>
In-Reply-To
<1367239781-5232-1-git-send-email-artagnon@gmail.com>

9f765ce (remote.c: introduce branch.<name>.pushremote, 2013-04-02) introduced the configuration variable branch.*.pushremote, but forgot to teach git-completion.bash about it. Fix this.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 contrib/completion/git-completion.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 7bb11a1..af271cc 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1810,7 +1810,7 @@ __git_config_get_set_variables ()
 _git_config ()
 {
 	case "$prev" in
-	branch.*.remote)
+	branch.*.remote|branch.*.pushremote)
 		__gitcomp_nl "$(__git_remotes)"
 		return
 		;;
@@ -1906,7 +1906,7 @@ _git_config ()
 		;;
 	branch.*.*)
 		local pfx="${cur%.*}." cur_="${cur##*.}"
-		__gitcomp "remote merge mergeoptions rebase" "$pfx" "$cur_"
+		__gitcomp "remote pushremote merge mergeoptions rebase" "$pfx" "$cur_"
 		return
 		;;
 	branch.*)
-- 
1.8.2.1.616.ga1e5536.dirty
Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 5 of 8 in “[RESEND] Minor additions to git-completion.bash”
  1. 0/5 [RESEND] Minor additions to git-completion.bashRamkumar Ramachandra, Apr 29, 2013
  2. 1/5 git-completion.bash: lexical sorting for diff.statGraphWidthRamkumar Ramachandra, Apr 29, 2013
  3. 2/5 git-completion.bash: add diff.submodule to config listRamkumar Ramachandra, Apr 29, 2013
  4. 3/5 git-completion.bash: complete branch.*.rebase as booleanRamkumar Ramachandra, Apr 29, 2013
  5. 4/5 git-completion.bash: add branch.*.pushremote to config listRamkumar Ramachandra, Apr 29, 2013
  6. 5/5 git-completion.bash: add remote.pushdefault to config listRamkumar Ramachandra, Apr 29, 2013
  7. Ramkumar RamachandraApr 29, 2013
  8. Junio C HamanoApr 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.