Re: Clean up "git log" format with DIFF_FORMAT_NO_OUTPUT
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Oct 8, 2007, 20:55 UTC
- Message-ID
- <alpine.LFD.0.999.0710081353290.4964@woody.linux-foundation.org>
- In-Reply-To
- <alpine.LFD.0.999.0710081342530.4964@woody.linux-foundation.org>
On Mon, 8 Oct 2007, Linus Torvalds wrote:
> > This fixes an unnecessary empty line that we add to the log message when > we generate diffs, but don't actually end up printing any due to having > DIFF_FORMAT_NO_OUTPUT set.
Btw, this seems to break a few tests, where the test assumed the extra newlines at the end of commands like "git show -s" (which also triggered the extra unnecessary padding between commit text and the suppressed diff).
I think the patch is correct, but the tests obviously would need fixing before this patch should be applied.
Linus