From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: The merge from hell... Date: Thu, 02 Feb 2006 02:41:28 -0800 Message-ID: <7v7j8erqjr.fsf@assigned-by-dhcp.cox.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marco Costalba , Junio C Hamano , Git Mailing List , Paul Mackerras , Marco Costalba X-From: git-owner@vger.kernel.org Thu Feb 02 11:42:05 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F4buH-0002y3-8o for gcvg-git@gmane.org; Thu, 02 Feb 2006 11:41:44 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423097AbWBBKlc (ORCPT ); Thu, 2 Feb 2006 05:41:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423440AbWBBKlb (ORCPT ); Thu, 2 Feb 2006 05:41:31 -0500 Received: from fed1rmmtao03.cox.net ([68.230.241.36]:21640 "EHLO fed1rmmtao03.cox.net") by vger.kernel.org with ESMTP id S1423097AbWBBKla (ORCPT ); Thu, 2 Feb 2006 05:41:30 -0500 Received: from assigned-by-dhcp.cox.net ([68.4.9.127]) by fed1rmmtao03.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060202104015.GJNT20875.fed1rmmtao03.cox.net@assigned-by-dhcp.cox.net>; Thu, 2 Feb 2006 05:40:15 -0500 To: Linus Torvalds In-Reply-To: (Linus Torvalds's message of "Thu, 2 Feb 2006 00:44:35 -0800 (PST)") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: 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.