diff options
author | Stefan Beller <sbeller@google.com> | 2018-04-17 11:19:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-18 09:19:05 +0900 |
commit | d228eea5146540b09376f90e2b805553cdc78590 (patch) | |
tree | 2d2f023ded0e655b1be1361eca0809af864abd93 /builtin/tag.c | |
parent | Git 2.17 (diff) | |
download | tgif-d228eea5146540b09376f90e2b805553cdc78590.tar.xz |
worktree: accept -f as short for --force for removal
Many commands support a "--force" option, frequently abbreviated as
"-f", however, "git worktree remove"'s hand-rolled OPT_BOOL forgets
to recognize the short form, despite git-worktree.txt documenting
"-f" as supported. Replace OPT_BOOL with OPT__FORCE, which provides
"-f" for free, and makes 'remove' consistent with 'add' option
parsing (which also specifies the PARSE_OPT_NOCOMPLETE flag).
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/tag.c')
0 files changed, 0 insertions, 0 deletions