parse-options: let OPT__FORCE take optional flags argument
commit1224781d6080b8b69a81526ee23b22a1587920ea
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 9 Feb 2018 11:01:42 +0000 (9 18:01 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Feb 2018 18:24:50 +0000 (9 10:24 -0800)
tree8b31c3cc26307351710d01d6b797d77101bb97b8
parent2de37349d9484fc51f45fe5dc9da56096b360221
parse-options: let OPT__FORCE take optional flags argument

--force option is most likely hidden from command line completion for
safety reasons. This is done by adding an extra flag
PARSE_OPT_NOCOMPLETE. Update OPT__FORCE() to accept additional
flags. Actual flag change comes later depending on individual
commands.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
14 files changed:
builtin/add.c
builtin/branch.c
builtin/checkout-index.c
builtin/checkout.c
builtin/clean.c
builtin/fetch.c
builtin/mv.c
builtin/notes.c
builtin/pull.c
builtin/rm.c
builtin/tag.c
builtin/update-server-info.c
builtin/worktree.c
parse-options.h