Re: The merge from hell...
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 2, 2006, 10:41 UTC
- Message-ID
- <7v7j8erqjr.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0602020027400.21884@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 10 quoted lines
> On Thu, 2 Feb 2006, Aneesh Kumar wrote: >> >> Ok i tried using --cc. But then as per the man page if the >> optimization makes the all the hunks disapper then commit log is not >> show unless -m is used. > > Ahh. You're mis-using git-diff-tree. > > git-diff-tree will _never_ show the commit log if the diff ends up being > empty.
True, I should fix the documentation.
It _might_ make sense for certain users like gitk and gitview if we had a single tool that gives --pretty and its diff even if the diff is empty. Having said that, the flag --cc -m is too specific. If some uses want to see the commit log even for an empty diff, that flag should not be something only --cc honors.