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

[PATCH v2] completion: complete --delete, --move, and --remotes for git branch

From
Ville Skyttä <ville.skytta@iki.fi>
Date
Aug 9, 2016, 09:34 UTC
Message-ID
<1470735284-5686-1-git-send-email-ville.skytta@iki.fi>
In-Reply-To
<1120818262.376555.1465290963431.JavaMail.zimbra@ensimag.grenoble-inp.fr>
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
---
 contrib/completion/git-completion.bash | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 6a187bc..76abbd1 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1008,8 +1008,8 @@ _git_branch ()
 	while [ $c -lt $cword ]; do
 		i="${words[c]}"
 		case "$i" in
-		-d|-m)	only_local_ref="y" ;;
-		-r)	has_r="y" ;;
+		-d|--delete|-m|--move)	only_local_ref="y" ;;
+		-r|--remotes)		has_r="y" ;;
 		esac
 		((c++))
 	done
@@ -1023,7 +1023,7 @@ _git_branch ()
 			--color --no-color --verbose --abbrev= --no-abbrev
 			--track --no-track --contains --merged --no-merged
 			--set-upstream-to= --edit-description --list
-			--unset-upstream
+			--unset-upstream --delete --move --remotes
 			"
 		;;
 	*)
-- 
2.5.5
Previous: Remi Galan AlfonsoNext: Junio C Hamano
Message 5 of 6 in “completion: complete --move for git branch”
  1. completion: complete --move for git branchVille Skyttä, Jun 6, 2016
  2. Remi Galan AlfonsoJun 6, 2016
  3. Ville SkyttäJun 6, 2016
  4. Remi Galan AlfonsoJun 7, 2016
  5. completion: complete --delete, --move, and --remotes for git branchVille Skyttä, Aug 9, 2016
  6. Junio C HamanoAug 9, 2016

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.