Re: [git] Re: [PATCH] Add `%B' in format strings for raw commit body in `git log' and friends

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

 



Eli Barzilay <eli@xxxxxxxxxxxx> writes:

> On Apr  4, Junio C Hamano wrote:
>> Isn't this the same as "%s%n%+b"?
>
> The problem with that is that it wraps the first paragraph.  So it's
> fine as long as it's always used as a subject line.
>
> (I'm migrating a project to git, and some people will never remember
> to do that.)

Ok, but then "rev-list --pretty=format:%B" would not be as a good tool for
migration to begin with (imagine a log message that begins with "commit"),
compared to say "rev-list --pretty=raw".

It also feels a bit funny to list %B that doesn't do the paragraph
pretty-printing in pretty-formats.txt documentation ;-) but that is not an
objection.


--
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]