git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-show --stat on first commit

From
Horst H. von Brand <vonbrand@inf.utfsm.cl>
Date
Nov 21, 2006, 18:14 UTC
Message-ID
<200611211814.kALIE4EQ009257@laptop13.inf.utfsm.cl>
In-Reply-To
<jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> wrote:
> Peter Baumann wrote:
> > On 2006-11-21, Santi Béjar <sbejar@gmail.com> wrote:
> >> On 11/21/06, Andy Parkins <andyparkins@gmail.com> wrote:
[...]
> >> 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.
> > Why not make --root the default? I also stumbled over this behaviour and
> > even asked on this list.
> > 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).
> > And one less "wart" to clean, which another thread is all about. :-)

Count me in! A freshly created repo should be just empty, not some strange construction that isn't a real repo. The empty set /is/ real useful, you know. Even if it is just for symmetry.

> Because for projects imported into git first commit diff is huge,
> and not very interesting.

That isn't your call to make. Sure, if I just untarred something large and gitified it, I /know/ the diff to "before" is huge, and not really informative, and I'll abstain from asking for it. But if I just started a project with a half dozen files, I'd like to see what came before, or look at the difference to "5 commits back" (which just happens to be every change, as there are 4 commits in all).

The main focus here is on large(ish) projects with a lot of history, but if you want to be able to get some mindshare you will have to look at the other end, projects just getting off the ground.

-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Next: Horst H. von Brand
Message 1 of 10 in “Re: git-show --stat on first commit”
  1. Horst H. von BrandNov 21, 2006
  2. Horst H. von BrandDec 15, 2006
  3. Andreas EricssonDec 15, 2006
  4. Junio C HamanoDec 15, 2006
  5. Horst H. von BrandDec 27, 2006
  6. Junio C HamanoDec 27, 2006
  7. Junio C HamanoDec 28, 2006
  8. Nicolas PitreDec 28, 2006
  9. David KågedalDec 29, 2006
  10. Horst H. von BrandJan 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.