summaryrefslogtreecommitdiff
path: root/builtin/check-attr.c
diff options
context:
space:
mode:
authorLibravatar Josh Steadmon <steadmon@google.com>2022-01-18 12:49:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-18 14:08:15 -0800
commit15f002812f858b49ce7641eb191561843cf31f00 (patch)
tree0dd6567e4958899495c6adbb6c0829f36e8df961 /builtin/check-attr.c
parentconfig: require lowercase for branch.*.autosetupmerge (diff)
downloadtgif-15f002812f858b49ce7641eb191561843cf31f00.tar.xz
branch,checkout: fix --track usage strings
As Ævar pointed out in [1], the use of PARSE_OPT_LITERAL_ARGHELP with a list of allowed parameters is not recommended. Both git-branch and git-checkout were changed in d311566 (branch: add flags and config to inherit tracking, 2021-12-20) to use this discouraged combination for their --track flags. Fix this by removing PARSE_OPT_LITERAL_ARGHELP, and changing the arghelp to simply be "mode". Users may discover allowed values in the manual pages. [1]: https://lore.kernel.org/git/220111.86a6g3yqf9.gmgdl@evledraar.gmail.com/ Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/check-attr.c')
0 files changed, 0 insertions, 0 deletions