summaryrefslogtreecommitdiff
path: root/contrib/git-shell-commands/README
diff options
context:
space:
mode:
authorLibravatar Brandon Casey <drafnel@gmail.com>2017-09-17 15:28:16 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-19 12:13:08 +0900
commit33e75122f483f887d4db7ccec01f42dea7ee79fb (patch)
treed1367c42c2324d2b373abe394aaa3f27f68a8405 /contrib/git-shell-commands/README
parentrev-parse parseopt: do not search help text for flag chars (diff)
downloadtgif-33e75122f483f887d4db7ccec01f42dea7ee79fb.tar.xz
rev-parse parseopt: interpret any whitespace as start of help text
Currently, rev-parse only interprets a space ' ' character as the delimiter between the option spec and the help text. So if a tab character is placed between the option spec and the help text, it will be interpreted as part of the long option name or as part of the arg hint. If it is interpreted as part of the long option name, then rev-parse will produce what will be interpreted as multiple arguments on the command line. For example, the following option spec (note: there is a <tab> between "frotz" and "enable"): frotz enable frotzing will produce the following set expression when --frotz is used: set -- --frotz -- instead of this: set -- --frotz enable -- Mark t1502.2 as fixed. Signed-off-by: Brandon Casey <drafnel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/git-shell-commands/README')
0 files changed, 0 insertions, 0 deletions