UI consistency: allow --force for where -f means force
git branch, checkout, clean, mv and tag all have an option -f to override certain checks. This patch makes them accept the long option --force as a synonym. While we're at it, document that checkout support --quiet as synonym for its short option -q. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
53a1116c61
commit
f7aec129fa
@ -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', NULL, &force, "replace the tag if exists"),
|
||||
OPT_BOOLEAN('f', "force", &force, "replace the tag if exists"),
|
||||
|
||||
OPT_GROUP("Tag listing options"),
|
||||
{
|
||||
|
Reference in New Issue
Block a user