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

[PATCH] Add support for 'git remote rm' in Bash completion script

From
SZSergey Zolotarev <szolot4rev@gmail.com>
Date
Feb 9, 2019, 05:24 UTC
Message-ID
<20190209052434.20616-1-szolot4rev@gmail.com>
---
 contrib/completion/git-completion.bash | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 499e56f83d..fa25d689e2 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2334,7 +2334,7 @@ _git_remote ()
 {
 	local subcommands="
 		add rename remove set-head set-branches
-		get-url set-url show prune update
+		get-url set-url show prune rm update
 		"
 	local subcommand="$(__git_find_on_cmdline "$subcommands")"
 	if [ -z "$subcommand" ]; then
@@ -2379,6 +2379,9 @@ _git_remote ()
 	prune,--*)
 		__gitcomp_builtin remote_prune
 		;;
+	rm,--*)
+		__gitcomp_builtin remote_rm
+		;;
 	*)
 		__gitcomp_nl "$(__git_remotes)"
 		;;
-- 
2.20.1.windows.1
Next: Todd Zullinger
Message 1 of 4 in “Add support for 'git remote rm' in Bash completion script”
  1. Add support for 'git remote rm' in Bash completion scriptSergey Zolotarev, Feb 9, 2019
  2. Todd ZullingerFeb 9, 2019
  3. Keith SmileyFeb 9, 2019
  4. Todd ZullingerFeb 10, 2019

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.