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

[PATCH] bash completion: git rm has grown a --force option

From
Todd Zullinger <tmz@pobox.com>
Date
Aug 8, 2008, 23:41 UTC
Message-ID
<20080808234134.GH5655@inocybe.teonanacatl.org>
In-Reply-To
<7v8wv7az0z.fsf@gitster.siamese.dyndns.org>
Signed-off-by: Todd Zullinger <tmz@pobox.com>
---
Junio C Hamano wrote:
> I think this makes sense even this late in -rc cycle.  Thanks.

Perhaps this is worth adding as well then, since Lee went to the trouble of adding completion for git rm just the other day? ;)

 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 3396e35..2d0e468 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1361,7 +1361,7 @@ _git_rm ()
 	local cur="${COMP_WORDS[COMP_CWORD]}"
 	case "$cur" in
 	--*)
-		__gitcomp "--cached --dry-run --ignore-unmatch --quiet"
+		__gitcomp "--cached --dry-run --force --ignore-unmatch --quiet"
 		return
 		;;
 	esac
-- 
1.6.0.rc2

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In some cultures what I do would be considered normal.
Previous: Junio C HamanoNext: SZEDER Gábor
Message 3 of 6 in “builtin-rm: Add a --force flag”
  1. builtin-rm: Add a --force flagPieter de Bie, Aug 8, 2008
  2. Junio C HamanoAug 8, 2008
  3. bash completion: git rm has grown a --force optionTodd Zullinger, Aug 8, 2008
  4. SZEDER GáborAug 9, 2008
  5. Todd ZullingerAug 9, 2008
  6. Jeff KingAug 9, 2008

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.