Re: [PATCH] Add --show-size to git log to print message size

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

 



On 7/15/07, Sean <seanlkml@xxxxxxxxxxxx> wrote:
On Sun, 15 Jul 2007 17:58:21 +0200
"Marco Costalba" <mcostalba@xxxxxxxxx> wrote:

> What should I search for to find the revision boundary? "\n\0" ? is
> this that you mean with ^\0

Essentially yes.  That pattern will never appear inside the comment
or patch text because both sections are always indented.  So in the
example you cite, "\n\0" would match the proper terminator, and the
"\n-\0" NUL would be ignored.


But your scheme does not fail if the patch is not \n terminated ?

It can happen if the patch adds lines at the end of a file and the
last line is not \n terminated.

In this case your scheme seems to miss the good next revision boundary.


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

  Powered by Linux