git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Junio C HamanoNext: David Kastrup
Message 5 of 10 in “[BUG] Documentation: git log: --exit-code undocumented?”
  1. Sergey OrganovDec 1, 2014
  2. Junio C HamanoDec 1, 2014
  3. Sergey OrganovDec 1, 2014
  4. Junio C HamanoDec 1, 2014
  5. Sergey OrganovDec 1, 2014
  6. David KastrupDec 1, 2014
  7. Junio C HamanoDec 1, 2014
  8. David KastrupDec 1, 2014
  9. Sergey OrganovDec 2, 2014
  10. John KeepingDec 2, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.