Customize the sort of "git diff --stat" output
- From
- ROZAR 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