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
@ -699,7 +699,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
|
||||
2),
|
||||
OPT_SET_INT('3', "theirs", &opts.writeout_stage, "checkout their version for unmerged files",
|
||||
3),
|
||||
OPT_BOOLEAN('f', "force", &opts.force, "force checkout (throw away local modifications)"),
|
||||
OPT__FORCE(&opts.force, "force checkout (throw away local modifications)"),
|
||||
OPT_BOOLEAN('m', "merge", &opts.merge, "perform a 3-way merge with the new branch"),
|
||||
OPT_STRING(0, "conflict", &conflict_style, "style",
|
||||
"conflict style (merge or diff3)"),
|
||||
|
Reference in New Issue
Block a user