diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-06-01 13:38:16 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-06-01 14:12:27 +0900 |
| commit | 29ec62700ad3db6be572c6f3c03a7d0443c86353 (patch) | |
| tree | 4c6df3518db70b39a883019cfd010ae30c3af550 /diff.c | |
| parent | 0339965c70d68fd3831c9a5306443c869de3f6a8 (diff) | |
| download | git-jc/diff-log-help.tar.gz | |
diff- and log- family: handle "git cmd -h" earlyjc/diff-log-help
"git $builtin -h" bypasses the usual repository setup and calls the
cmd_$builtin() function, expecting it to show the help text.
Unfortunately the commands in the log- and the diff- family want to
call into the revisions machinery, which by definition needs to have
a repository already discovered, before they can parse the options.
Handle the "git $builtin -h" special case very early in these
commands to work around potential issues.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions
