summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 222566e)
raw | patch | inline | side by side (parent: 222566e)
author | Pieter de Bie <pdebie@ai.rug.nl> | |
Fri, 8 Aug 2008 22:37:02 +0000 (00:37 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 9 Aug 2008 01:27:19 +0000 (18:27 -0700) |
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
subversion people to switch.
Signed-off-by: Pieter de Bie <pdebie@ai.rug.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rm.txt | patch | blob | history | |
builtin-rm.c | patch | blob | history |
index 4d0c495bc3ecb5482165a46956efe73dfdc5ee72..5afb1e7428126c79171cf7e7b1fb027e1de64c86 100644 (file)
--- a/Documentation/git-rm.txt
+++ b/Documentation/git-rm.txt
SYNOPSIS
--------
-'git rm' [-f] [-n] [-r] [--cached] [--ignore-unmatch] [--quiet] [--] <file>...
+'git rm' [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch] [--quiet] [--] <file>...
DESCRIPTION
-----------
but this requires the `-r` option to be explicitly given.
-f::
+--force::
Override the up-to-date check.
-n::
diff --git a/builtin-rm.c b/builtin-rm.c
index ee8247b08cd007f73d5dfffa560a9efe33d327b9..0ed26bb8f10062185b9476815f17c2902461e47d 100644 (file)
--- a/builtin-rm.c
+++ b/builtin-rm.c
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"),