summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mars-attacks.org>2013-10-31 11:08:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-10-31 22:47:41 (GMT)
commitf8c872127d4c48a6ec02abce34cb059ddeb6402a (patch)
tree6667fb8cefbabb17ae4fa670a4ea882932fe8d65 /version.c
parentb0d12fc9b23a0f656fe3a5dbe2899e85b7e2f5c0 (diff)
downloadgit-f8c872127d4c48a6ec02abce34cb059ddeb6402a.zip
git-f8c872127d4c48a6ec02abce34cb059ddeb6402a.tar.gz
git-f8c872127d4c48a6ec02abce34cb059ddeb6402a.tar.bz2
rev-parse --parseopt: add the --stuck-long mode
Add the --stuck-long option to output the options in their long form if available, and with their arguments stuck. Contrary to the default form (non stuck arguments and short options), this can be parsed unambiguously when using options with optional arguments : - in the non stuck form, when an option is taking an optional argument you cannot know if the next argument is its optional argument, or the next option. - the long options form allows to differentiate between an empty argument '--option=' and an unset argument '--option', which is not possible with short options. Signed-off-by: Nicolas Vigier <boklm@mars-attacks.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'version.c')
0 files changed, 0 insertions, 0 deletions