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

Re: [PATCH] merge: Make merge strategy message follow the diffstat

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jan 13, 2012, 19:49 UTC
Message-ID
<CA+55aFxw_-0h1FDmPRVif3LM03Qh3-6haA7=KYbae8pSFbpW2w@mail.gmail.com>
In-Reply-To
<CACsJy8BmFgssTAh=1U7JgBsGG-tSaWXQzZeODND3icXY3QUxug@mail.gmail.com>

On Fri, Jan 13, 2012 at 11:27 AM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:

Show 5 quoted lines
>
> Still, diffstat from a fetch/pull is sometimes too verbose. It'd be
> better if we have something that fit in one screen (dirstat or maybe
> just a first few lines from diffstat then ellipsis) then refer users
> to "git diff --stat HEAD@{1}" for more detail stat.

Yeah, I've wanted that. Show the beginning, the end, and the summary line of the diffstat would be lovely.

It would be lovely in "git commit" too. Not just
    Modified: filename
but a diffstat that shows now many lines.

And what I've *really* wanted is to actually see the diff itself if it is small. So some kind of "dynamic summary": for one-liners (or ten-liners), show the whole diff. For medium-sized changes, show the whole diffstat. And for really big changes, show an outline and the "768 files changed, 179851 lines added, 7630 lines removed" stats.

IOW, whatever fits in, say, 50 lines or less.
That would be absolutely lovely if somebody were to do it.
                  Linus
Previous: Nguyen Thai Ngoc DuyNext: Miles Bader
Message 19 of 20 in “Re: Regulator updates for 3.3”
  1. Linus TorvaldsJan 10, 2012
  2. Mark BrownJan 10, 2012
  3. Junio C HamanoJan 11, 2012
  4. Linus TorvaldsJan 11, 2012
  5. Junio C HamanoJan 11, 2012
  6. Linus TorvaldsJan 11, 2012
  7. Re* Regulator updates for 3.3Junio C Hamano, Jan 11, 2012
  8. Phil HordJan 11, 2012
  9. Linus TorvaldsJan 11, 2012
  10. Pete HarlanJan 16, 2012
  11. Junio C HamanoJan 16, 2012
  12. Martin FickJan 16, 2012
  13. Pete HarlanJan 17, 2012
  14. Junio C HamanoJan 17, 2012
  15. Linus TorvaldsJan 11, 2012
  16. Paul GortmakerJan 11, 2012
  17. Junio C HamanoJan 13, 2012
  18. Nguyen Thai Ngoc DuyJan 13, 2012
  19. Linus TorvaldsJan 13, 2012
  20. Miles BaderJan 17, 2012

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.