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

[PATCH] builtin-rm: Add a --force flag

From
PBPieter de Bie <pdebie@ai.rug.nl>
Date
Aug 8, 2008, 22:37 UTC
Message-ID
<1218235022-33695-1-git-send-email-pdebie@ai.rug.nl>

This adds a --force flag to git-rm, making it somewhat easier for subversion people to switch.

Signed-off-by: Pieter de Bie <pdebie@ai.rug.nl>
---
  I heard some people complain about how they try "svn rm -f" or "git rm
  --force", which both fail. We can help them a bit by supporting --force too.
 builtin-rm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-rm.c b/builtin-rm.c
index ee8247b..4c9f483 100644
--- a/builtin-rm.c
+++ b/builtin-rm.c
@@ -131,7 +131,7 @@ static struct option builtin_rm_options[] = {
 	OPT__DRY_RUN(&show_only),
 	OPT__QUIET(&quiet),
 	OPT_BOOLEAN( 0 , "cached",         &index_only, "only remove from the index"),
-	OPT_BOOLEAN('f', NULL,             &force,      "override the up-to-date check"),
+	OPT_BOOLEAN('f', "force",             &force,      "override the up-to-date check"),
 	OPT_BOOLEAN('r', NULL,             &recursive,  "allow recursive removal"),
 	OPT_BOOLEAN( 0 , "ignore-unmatch", &ignore_unmatch,
 				"exit with a zero status even if nothing matched"),
-- 
1.6.0.rc1.288.g5b89f
Next: Junio C Hamano
Message 1 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.