Re: git rev-list formatting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



René Scharfe <rene.scharfe@xxxxxxxxxxxxxx> 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.

  $ git rev-list --pretty="%b" foo

shows one "commit <sha1>" line, then the body, and then the rest of
the commits (13 of them) with no body at all (just the "commit <sha1>"
lines).

  $ git rev-list --pretty="%b" 267d60518

Same output -- 267d60518 is the commit that `foo' points to.

  $ git rev-list --pretty="%b" 84482

This is for a commit that is somewhere in the middle of these commits,
the output has *only* "commit <sha1>" lines -- no body shown.

  $ git rev-list --pretty 84482

This one works fine, showing all of the commits and their log
messages.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]