Sort output of diff --stat?
- From
- Robert Dailey <rcdailey.lists@gmail.com>
- Date
- Oct 17, 2018, 18:15 UTC
- Message-ID
- <CAHd499BSVRytaFKOUhE=A4Zv+MMx=uKrWKUcT13QwzOCZWhEtg@mail.gmail.com>
I'd like to sort the output of `git diff --stat` such that files are listed in descending order based on number of lines changed. The closest solution I've found online[1] has several readability issues. I'd rather see a built-in solution in git, if one exists. Can anyone recommend a solution?
[1]: https://gist.github.com/jakub-g/7599177