Re: Clarifying behavior of diff --stat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 deals with the
actual blobs and would have nothing to show for tree entries.

And since recursive-ness is global to the whole diff, not just one
output format, the --raw output becomes recursive, too.

> Is this intentional? And is there a way to generate a raw version of
> the extended stat without using --stat?

Try "git diff-tree --raw -r".

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]