]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/update-index.c
add, update-index: fix --chmod argument help
authorRené Scharfe <l.s.r@web.de>
Thu, 2 Aug 2018 19:17:35 +0000 (21:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Aug 2018 15:36:20 +0000 (08:36 -0700)
commit8b5ebbed0e793f6fcf92100e600b7a4bdd6452e9
tree5b9abca72412b0a2603ef75fc4bc975b044e07a8
parentc67318ecb6ddef6b9ecf59a422c4a282594e602d
add, update-index: fix --chmod argument help

Don't translate the argument specification for --chmod; "+x" and "-x"
are the literal strings that the commands accept.

Separate alternatives using a pipe character instead of a slash, for
consistency.

Use the flag PARSE_OPT_LITERAL_ARGHELP to prevent parseopt from adding a
pair of angular brackets around the argument help string, as that would
wrongly indicate that users need to replace the literal strings with
some kind of value.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
builtin/update-index.c