From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Sixt Subject: Re: [RFC/PATCH 3/3] builtin/show.c: do not prune by pathspec Date: Thu, 31 Mar 2011 12:18:01 +0200 Message-ID: <4D9454D9.6060406@viscovery.net> References: <4D94322A.8030409@drmicha.warpmail.net> <3bee7fb376e2fb498c9634ab2ff5506f8c74a7bc.1301562936.git.git@drmicha.warpmail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org, Junio C Hamano , Piotr Krukowiecki To: Michael J Gruber X-From: git-owner@vger.kernel.org Thu Mar 31 12:18:18 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5ExD-000390-6j for gcvg-git-2@lo.gmane.org; Thu, 31 Mar 2011 12:18:15 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933879Ab1CaKSJ (ORCPT ); Thu, 31 Mar 2011 06:18:09 -0400 Received: from lilzmailso01.liwest.at ([212.33.55.23]:63452 "EHLO lilzmailso02.liwest.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933501Ab1CaKSH (ORCPT ); Thu, 31 Mar 2011 06:18:07 -0400 Received: from cpe228-254-static.liwest.at ([81.10.228.254] helo=theia.linz.viscovery) by lilzmailso02.liwest.at with esmtpa (Exim 4.69) (envelope-from ) id 1Q5Ex0-0003nG-0o; Thu, 31 Mar 2011 12:18:02 +0200 Received: from [127.0.0.1] (J6T.linz.viscovery [192.168.1.95]) by theia.linz.viscovery (Postfix) with ESMTP id BBB911660F; Thu, 31 Mar 2011 12:18:01 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <3bee7fb376e2fb498c9634ab2ff5506f8c74a7bc.1301562936.git.git@drmicha.warpmail.net> X-Spam-Score: -1.4 (-) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Am 3/31/2011 11:17, schrieb Michael J Gruber: > By design, "git show commit -- path" is not "git show commit:path", and > there is no reason to change that. But "git show commit -- path" simply > returns nothing at all "most of the time" because it prunes by pathspec > even though it does not walk commits. This is pretty useless. > > So, turn off pruning (but keep diff limiting of course) so that "git > show commit -- path" shows the commit message and the diff that the > commit introduces to path (filtered by path); only the diff will be > empty "most of the time". How does this interfere with git show --walk commit -- path? Will it now show all commits instead of just those that changed path? -- Hannes