[PATCH 3 of 4] diff: add --stat option for diffstat output

Brodie Rao dackze at gmail.com
Wed Aug 5 09:15:18 CDT 2009


On Aug 5, 2009, at 7:45 AM, Dirkjan Ochtman wrote:

> On Thu, Jul 30, 2009 at 17:06, Brodie Rao<dackze at gmail.com> wrote:
>> # HG changeset patch
>> # User Brodie Rao <me+hg at dackz.net>
>> # Date 1248966179 14400
>> # Node ID 5862bde342a377fa66d789d25d37626dc779626a
>> # Parent  4e4d554a609b50494411693f6a390ffd711f4501
>> diff: add --stat option for diffstat output
>
> You neglect to mention you also added --stat-width, which seems like
> UI clutter to me.

Sorry about that.

diffstat(1) has a similar option:

   -w NUM  specify maximum width of the output (default: 80)

I think it's worth adding with --stat. The "auto" value that scales  
with the terminal's width is especially nice, and it's probably  
something I'd have in my own defaults.

patch.diffstat() already supports changing the output width, and  
without a command line option you're stuck to 80 characters.



More information about the Mercurial-devel mailing list