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

Customize the sort of "git diff --stat" output

From
RFROZAR Fabien <fabien.rozar@hexagon.com>
Date
Aug 28, 2018, 11:49 UTC
Message-ID
<AM6PR06MB423154FFB65DD801EF0CE8519A0A0@AM6PR06MB4231.eurprd06.prod.outlook.com>
Hello there,

I was looking for the possibility of sorting the output of the command "git diff --stat" by the number of modifications. Currently, the output of this command show the modified files by alphabetic order. I didn't find a "builtin" option which allows to sort the files by number of modifications.

It is possible to do it with a "| sort <good_option>" but you may lose the coloration and it's not desirable. If this option already exist, please send me a link to it and I apologize by advance.

Fabien ROZAR
Message 1 of 1 in “Customize the sort of "git diff --stat" output”
  1. ROZAR FabienAug 28, 2018

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.