From: Junio C Hamano Date: Thu, 02 Feb 2006 10:41:28 GMT Subject: Re: The merge from hell... Message-ID: <7v7j8erqjr.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > 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.