Re: Sort output of diff --stat?

2018-10-17 Thread Jeff King
On Wed, Oct 17, 2018 at 02:21:57PM -0500, Robert Dailey wrote: > On Wed, Oct 17, 2018 at 1:47 PM Jeff King wrote: > > Hmm, I feel like another person asked for this recently, but I can't > > seem to find the thread. > > Is it this one? >

Re: Sort output of diff --stat?

2018-10-17 Thread Robert Dailey
On Wed, Oct 17, 2018 at 1:47 PM Jeff King wrote: > Hmm, I feel like another person asked for this recently, but I can't > seem to find the thread. Is it this one? https://www.mail-archive.com/git@vger.kernel.org/msg159212.html That's the only one I was able to find, but no one replied. Thanks

Re: Sort output of diff --stat?

2018-10-17 Thread Jeff King
On Wed, Oct 17, 2018 at 01:15:18PM -0500, Robert Dailey wrote: > 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

Sort output of diff --stat?

2018-10-17 Thread Robert Dailey
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?