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

Re: git rev-list formatting

From
Eli Barzilay <eli@barzilay.org>
Date
Mar 23, 2010, 11:06 UTC
Message-ID
<m3ocifnvpd.fsf@winooski.ccs.neu.edu>
In-Reply-To
<4BA89D88.7080803@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 30 quoted lines
> Eli Barzilay venit, vidit, dixit 23.03.2010 02:57:
>> René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
>> 
>>> Am 22.03.2010 12:30, schrieb Eli Barzilay:
>>>> Possible bug -- IIUC, this:
>>>>
>>>>   git rev-list --pretty="%w(40,2,2)%b" $rev
>>>>
>>>> should show all bodies wrapped as specified, but with 1.7.0.3 I see
>>>> only the first one wrapped, and the rest don't show up.  In one of my
>>>> attempts to sort this, I saw all bodies, but all bodies after the
>>>> first were not wrapped as specified.
>>>
>>> I can't reproduce this when running this command against git's own
>>> repo.  Or perhaps I just fail to see it.  Is the one you're trying
>>> this on public?  Does it work as expected with some other version of
>>> git?
>> 
>> Sorry, I've lost track of all the different things I tried, but here's
>> something that I can reproduce reliably now, which seems to be a
>> similar problem (or at least nothing in the man page explain why it
>> would do what it does).  If this is helpful, I'll tar up the
>> repository and put it up somewhere.  This is all running in the repo
>> -- and it case it matters, it's a bare repo, created with 1.7.0.
>
> I'd say that certainly matters (can't reproduce this one on non-bare
> either).
>
> When you say "in the repo", do you mean that you're current
> directory is within yourbarerepo.git?
Yes.
> Do you have GIT_DIR set explicitly?
No.
> [...]
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
-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!
Previous: Michael J GruberNext: Jeff King
Message 11 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.