Re: [BUG] Documentation: git log: --exit-code undocumented?
- From
Sergey Organov <sorganov@gmail.com>
- Date
- Dec 1, 2014, 16:43 UTC
- Message-ID
- <87oarngw2b.fsf@osv.gnss.ru>
- In-Reply-To
- <xmqqa937qqb7.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 22 quoted lines
> Sergey Organov <sorganov@gmail.com> writes: > >> Junio C Hamano <gitster@pobox.com> writes: >> >>> Sergey Organov <sorganov@gmail.com> writes: >>> >>>> Hello, >>>> >>>> $ git help log | grep exit-code >>>> problems are found. Not compatible with --exit-code. >>>> $ >>>> >>>> What --exit-code does in "git log"? >>> >>> It doesn't. That is why it is not listed. >> >> Then, how can --check possibly interfer with it? > > The description is shared with "git diff" and friends, which is > invoked via "git log -p". As "log" does not give the exit code > of individual "diff-tree" invocation for each commit, --exit-code > option is irrelevant.
Do you agree there is some minor problem here? First, "git log" silently eats the --exit-code option that does nothing. Next, git-log manual page doesn't include --exit-log description while refers to it elsewhere. What's proposed resulution?
-- Sergey.