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

Re: git rev-list formatting

From
Erik Faye-Lund <kusmabite@googlemail.com>
Date
Mar 23, 2010, 12:40 UTC
Message-ID
<40aa078e1003230540o40f551b2re8fbf1e70ae9ddbe@mail.gmail.com>
In-Reply-To
<20100323122603.GA2053@coredump.intra.peff.net>
On Tue, Mar 23, 2010 at 1:26 PM, Jeff King <peff@peff.net> wrote:
Show 21 quoted lines
> On Tue, Mar 23, 2010 at 07:06:38AM -0400, Eli Barzilay wrote:
>
>> > [...]
>>
>> I've made a copy of the repository at
>>
>>   http://tmp.barzilay.org/testing.git.tgz
>>
>> which shows what I said when I run
>>
>>   git rev-list --pretty="%b" 267d60518
>>   git rev-list --pretty="%b" 84482
>
> The problem is that most of those commits don't _have_ bodies. Remember
> that "%b" is about everything in the commit message after the first
> first paragraph.
>
> Now one might argue that rev-list should still put in the extra newline
> separator in this case. I haven't been paying attention, but hasn't that
> been discussed in another thread recently?
>

If you're thinking of the stuff I've been working on, that's about multiple commits ending up at the same line with --pretty=oneline, and not _really_ about unconditionally adding that new-line. But it is closely related, and it looks like it's the same code that is responsible for the current behavior. Commit 55246aa is what made then new-line conditional in the first place.

-- 
Erik "kusma" Faye-Lund
Previous: Jeff KingNext: Eli Barzilay
Message 13 of 14 in “git rev-list formatting”
  1. Eli BarzilayMar 22, 2010
  2. Eli BarzilayMar 22, 2010
  3. Michael J GruberMar 22, 2010
  4. rev-list: heed --abbrev-commit optionMichael J Gruber, Mar 22, 2010
  5. Junio C HamanoMar 26, 2010
  6. Michael J GruberMar 27, 2010
  7. Eli BarzilayMar 22, 2010
  8. René ScharfeMar 22, 2010
  9. Eli BarzilayMar 23, 2010
  10. Michael J GruberMar 23, 2010
  11. Eli BarzilayMar 23, 2010
  12. Jeff KingMar 23, 2010
  13. Erik Faye-LundMar 23, 2010
  14. Eli BarzilayMar 23, 2010

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.