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

Re: 2.10.0: git log --oneline prints gpg signatures in 4 lines

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 21, 2016, 16:19 UTC
Message-ID
<xmqqh999b4zr.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160920170954.38b24284@labs-064.localdomain>
Leandro Lucarella <leandro.lucarella@sociomantic.com> writes:
Show 6 quoted lines
> Hi, starting from 2.10.0 I noticed that when using git log --oneline,
> if commits are signed with GPG, now the signatures are printed too, and
> it takes 3 lines for the signature information + 1 line for the title
> of the commit, so suddenly --oneline became --fourline :)
>
> Is this really intended?

I think so. The documentation for --oneline may say "one line per commit" but in reality, some things cannot be expressed on one line. It should probably be described as "commit object name and its log message is formatted to be on a single line" without limiting other things that the user may have asked to be shown.

And show-signature is an example of what the user additionally can ask that cannot be fit on a single line. There probably are others.

Previous: Junio C Hamano
Message 7 of 7 in “2.10.0: git log --oneline prints gpg signatures in 4 lines”
  1. Leandro LucarellaSep 20, 2016
  2. Jeff KingSep 20, 2016
  3. Leandro LucarellaSep 21, 2016
  4. Leandro LucarellaSep 21, 2016
  5. Michael J GruberSep 21, 2016
  6. Junio C HamanoSep 21, 2016
  7. Junio C HamanoSep 21, 2016

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.