Drew Noakes writes:
> Passing -z with --name-only causes double nulls.
>
> $ git log -z --pretty=format:"%H" --name-only | grep -obUaP "\x00\x00" | wc
> -l
> 8994
> $ git log -z --pretty=format:"%H" | grep -obUaP "\x00\x00" | wc -l
> 0
With --pretty that tells you to show %H and --name-only that
Hi all,
I'm a developer on the Git Extensions project [1] and am looking at an
issue parsing the output of `git log` in that application.
Some investigation suggests that a certain combination of arguments causes
multiple consecutive null bytes between rows, where I would ordinarily
expect one.
2 matches
Mail list logo