add OPT__FORCE
Add OPT__FORCE as a helper macro in the same spirit as OPT__VERBOSE et.al. to simplify defining -f/--force options. Signed-off-by: Rene Scharfe <rene.scharfe@lstfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
d52ee6e613
commit
76946b76fe
@ -217,8 +217,7 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
|
||||
struct option builtin_checkout_index_options[] = {
|
||||
OPT_BOOLEAN('a', "all", &all,
|
||||
"checks out all files in the index"),
|
||||
OPT_BOOLEAN('f', "force", &force,
|
||||
"forces overwrite of existing files"),
|
||||
OPT__FORCE(&force, "forces overwrite of existing files"),
|
||||
OPT__QUIET(&quiet, "be quiet"),
|
||||
OPT_BOOLEAN('n', "no-create", ¬_new,
|
||||
"don't checkout new files"),
|
||||
|
Reference in New Issue
Block a user