git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Sergey Zolotarev <szolot4rev@gmail.com>
To: git@vger.kernel.org
Cc: Sergey Zolotarev <szolot4rev@gmail.com>
Subject: [PATCH] Add support for 'git remote rm' in Bash completion script
Date: Sat,  9 Feb 2019 11:24:34 +0600	[thread overview]
Message-ID: <20190209052434.20616-1-szolot4rev@gmail.com> (raw)

---
 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


             reply	other threads:[~2019-02-09  5:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-09  5:24 Sergey Zolotarev [this message]
2019-02-09  6:27 ` [PATCH] Add support for 'git remote rm' in Bash completion script Todd Zullinger
2019-02-09 16:47   ` Keith Smiley
2019-02-10  5:58     ` Todd Zullinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190209052434.20616-1-szolot4rev@gmail.com \
    --to=szolot4rev@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).