[PATCH] Make git-update-cache --force-remove regular
Make the --force-remove flag behave same as --add, --remove and --replace. This means I can do git-update-cache --force-remove -- file1.c file2.c which is probably saner and also makes it easier to use in cg-rm. Signed-off-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
418aaf847a
commit
9b63f50148
@ -12,7 +12,7 @@ SYNOPSIS
|
||||
'git-update-cache'
|
||||
[--add] [--remove] [--refresh] [--replace]
|
||||
[--ignore-missing]
|
||||
[--force-remove <file>]
|
||||
[--force-remove]
|
||||
[--cacheinfo <mode> <object> <file>]\*
|
||||
[--] [<file>]\*
|
||||
|
||||
@ -49,7 +49,7 @@ OPTIONS
|
||||
|
||||
--force-remove::
|
||||
Remove the file from the index even when the working directory
|
||||
still has such a file.
|
||||
still has such a file. (Implies --remove.)
|
||||
|
||||
--replace::
|
||||
By default, when a file `path` exists in the index,
|
||||
|
Reference in New Issue
Block a user