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
@ -390,7 +390,7 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
|
||||
OPT_BOOLEAN('s', NULL, &sign, "annotated and GPG-signed tag"),
|
||||
OPT_STRING('u', NULL, &keyid, "key-id",
|
||||
"use another key to sign the tag"),
|
||||
OPT_BOOLEAN('f', "force", &force, "replace the tag if exists"),
|
||||
OPT__FORCE(&force, "replace the tag if exists"),
|
||||
|
||||
OPT_GROUP("Tag listing options"),
|
||||
{
|
||||
|
Reference in New Issue
Block a user