diff options
author | Jeff King <peff@peff.net> | 2017-05-30 01:17:42 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-05 11:43:33 +0900 |
commit | b48cbfc5e6112952bc3be4dea0208bc5e1f331eb (patch) | |
tree | 7db0b1d288cf804cd2b67eca487c2bb94e1f8104 /templates/hooks--update.sample | |
parent | diff- and log- family: handle "git cmd -h" early (diff) | |
download | tgif-b48cbfc5e6112952bc3be4dea0208bc5e1f331eb.tar.xz |
version: convert to parse-options
The "git version" command didn't traditionally accept any
options, and in fact ignores any you give it. When we added
simple option parsing for "--build-options" in 6b9c38e14, we
didn't improve this; we just loop over the arguments and
pick out the one we recognize.
Instead, let's move to a real parsing loop, complain about
nonsense options, and recognize conventions like "-h".
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/hooks--update.sample')
0 files changed, 0 insertions, 0 deletions