Re: Clarifying behavior of diff --stat

2017-06-08 Thread Jeff King
On Thu, Jun 08, 2017 at 07:10:00AM -0400, Samuel Lijin wrote: > I noticed when answering a StackOverflow question that apparently > --stat modifies the raw diff itself, instead of just adding a diffstat > to the output. In the linux kernel: Sort of. Using "--stat" implies "-r", since it only deal

Clarifying behavior of diff --stat

2017-06-08 Thread Samuel Lijin
I noticed when answering a StackOverflow question that apparently --stat modifies the raw diff itself, instead of just adding a diffstat to the output. In the linux kernel: $ git diff-tree --raw -M 00a2430ff07d4e0e0e7e24e02fd8adede333b797 00a2430ff07d4e0e0e7e24e02fd8adede333b797 :04 04 f57