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

[PATCH] Add "--set-upstream" option to bash completion

From
DMDmitry Medvinsky <dmedvinsky@gmail.com>
Date
Apr 29, 2011, 15:57 UTC
Message-ID
<1304092621-554-1-git-send-email-dmedvinsky@gmail.com>

Since version 1.7.5 there is a new help message when pushing a branch with no upstream telling about the ability to use "--set-upstream" option. That option should be tab-completed for git push command.

Signed-off-by: Dmitry Medvinsky <dmedvinsky@gmail.com>
---
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 9150ea6..cc90e43 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1796,7 +1796,7 @@ _git_push ()
 	--*)
 		__gitcomp "
 			--all --mirror --tags --dry-run --force --verbose
-			--receive-pack= --repo=
+			--receive-pack= --repo= --set-upstream
 		"
 		return
 		;;
-- 
1.7.5
Next: Junio C Hamano
Message 1 of 2 in “Add "--set-upstream" option to bash completion”
  1. Add "--set-upstream" option to bash completionDmitry Medvinsky, Apr 29, 2011
  2. Junio C HamanoApr 29, 2011

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.