Jeff King <p...@peff.net> writes:
> On Fri, May 23, 2014 at 01:05:40PM -0700, Junio C Hamano wrote:
>> I just read read_graft_line(); it allows an empty line (both
>> length-0 before the terminating LF or CRLF, and a line with
>> isspace() only) and ignore them, so "grep '^[^#]'" is not
> Thanks, I missed the space trimming. I think:
> grep '^[^# \t]'
> would be enough, though I am not sure that "\t" is portable over a raw
Perhaps. That would filter out an empty line as well, which would
>> Perhaps a more future-proof way to write Christian's code may be:
>> which may not be too bad.
> Sounds familiar:
Yup, instead of having to memmove() repeatedly, copying into it
while skipping 'parent ' lines may be better.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html