All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] builtin-rm: Add a --force flag
@ 2008-08-08 22:37 Pieter de Bie
  2008-08-08 23:05 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Pieter de Bie @ 2008-08-08 22:37 UTC (permalink / raw)
  To: Git Mailinglist, Junio C Hamano; +Cc: Pieter de Bie

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-09  1:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 22:37 [PATCH] builtin-rm: Add a --force flag Pieter de Bie
2008-08-08 23:05 ` Junio C Hamano
2008-08-08 23:41   ` [PATCH] bash completion: git rm has grown a --force option Todd Zullinger
2008-08-09  1:07     ` SZEDER Gábor
2008-08-09  1:21       ` Todd Zullinger
2008-08-09  0:05   ` [PATCH] builtin-rm: Add a --force flag Jeff King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.