threads / discuss / 49233

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

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

## tl;dr

One message between Aug 28, 2018 and Aug 28, 2018.

replies: 0people: 1as markdown or json

ROZAR Fabien· Aug 28, 2018, 11:49 UTC · lore
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

← back to recent threads