From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Jakub Narebski Subject: Re: git-show --stat on first commit Date: Tue, 21 Nov 2006 17:18:15 +0100 Organization: At home Message-ID: References: <200611211341.48862.andyparkins@gmail.com> <8aa486160611210609h1c2d229ekf0b5e8aeb4f21f11@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE NNTP-Posting-Date: Tue, 21 Nov 2006 16:18:21 +0000 (UTC) Return-path: Envelope-to: gcvg-git@gmane.org X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host-81-190-24-209.torun.mm.pl Mail-Copies-To: jnareb@gmail.com User-Agent: KNode/0.10.2 Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmYJm-0003IW-Nf for gcvg-git@gmane.org; Tue, 21 Nov 2006 17:17:55 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934413AbWKUQRm convert rfc822-to-quoted-printable (ORCPT ); Tue, 21 Nov 2006 11:17:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934416AbWKUQRm (ORCPT ); Tue, 21 Nov 2006 11:17:42 -0500 Received: from main.gmane.org ([80.91.229.2]:50364 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S934413AbWKUQRl (ORCPT ); Tue, 21 Nov 2006 11:17:41 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GmYJG-00039l-3H for git@vger.kernel.org; Tue, 21 Nov 2006 17:17:22 +0100 Received: from host-81-190-24-209.torun.mm.pl ([81.190.24.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Nov 2006 17:17:22 +0100 Received: from jnareb by host-81-190-24-209.torun.mm.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Nov 2006 17:17:22 +0100 To: git@vger.kernel.org Sender: git-owner@vger.kernel.org Peter Baumann wrote: > On 2006-11-21, Santi B=E9jar wrote: >> On 11/21/06, Andy Parkins wrote: >>> Hello, >>> >>> I'm sure this one will be known about already. git-show --stat on = the the >>> first commit doesn't show anything. I assume it's because git-diff= -tree has >>> nothing to diff against (although shouldn't that be an everything-n= ew diff?). >>> >>> Given the above; does anyone have a suggestion for what I could use= as a >>> replacement? Even just a list of the new files would be useful. You can always use git-ls-tree >> $ git show --stat --root >> >> In general the initial commit diff (or stat) is hidden, but perhaps = it >> make sense to show it in "git show", you asked fo this specifically. >=20 > Why not make --root the default? I also stumbled over this behaviour = and > even asked on this list. >=20 > In my opinion this will help new users which are supprised that they > can't get the diff of the inital commit (which is totaly non-intuitiv= behavior). >=20 > And one less "wart" to clean, which another thread is all about. :-) Because for projects imported into git first commit diff is huge, and not very interesting. By the way, git show by default doesn't show diff for merges (you need --cc for that), nor rename detection (you nee= d -M for that). But you can always set default diff-tree options, including --root, --c= c and -M in the show.difftree configuration variable (either in repo conf= ig, or in user config). It is IMHO better solution than changing defaults. --=20 Jakub Narebski Warsaw, Poland ShadeHawk on #git