Re: Incorrect pipe for git log graph when using --name-status option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 13, 2017, 21:18 UTC
- Message-ID
- <xmqq37fhdc27.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170213211653.x3huwmzprvmm3yxj@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 12 quoted lines
> I think the problem is specifically related to the "terminator" versus > "separator" semantics. Try: > > git log --graph --name-status --pretty=format:%h > > versus: > > git log --graph --name-status --pretty=tformat:%h > > The latter works fine. The problem seems to happen with all diff > formats, so I think the issue is that git is not aggressive enough about > inserting the newline at the right spot when using separator mode.
I guess that is one of the reasons why we made --format=%h a synonym to --pretty=tformat:%h and not --pretty=format:%h ;-)