From: Adrian Bunk <bunk@stusta.de>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: [PATCH 1/3] diff --stat: allow custom diffstat output width.
Date: Fri, 29 Sep 2006 00:24:02 +0200 [thread overview]
Message-ID: <20060928222402.GC3469@stusta.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0609281349110.3952@g5.osdl.org>
On Thu, Sep 28, 2006 at 01:54:27PM -0700, Linus Torvalds wrote:
>
>
> On Tue, 26 Sep 2006, Junio C Hamano wrote:
> >
> > This adds two parameters to "diff --stat".
> >
> > . --stat-width=72 tells that the page should fit on 72-column output.
> >
> > . --stat-name-width=30 tells that the filename part is limited
> > to 30 columns.
>
> Thinking some more about this, I have to say, I do hate the syntax.
>
> It may be clear thanks to being verbose, but it's _hell_ to write.
>
> It has the same problem the "--stat-with-patch" argument had: sure, it
> worked, but it was really really inconvenient, and just doing a
> combination of "--stat -p" is much nicer.
>
> So how about just extending the existing "--stat" thing, and just making
> it do something like
>
> git diff --stat=72,30
>
> instead (perhaps along with a config option to set the defaults to
> something else if we want to).
>
> What do you think?
>...
What about staying compatible with diffstat?
IOW, change --stat-width=72 to -w72, or at least allow it alternatively?
> Linus
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2006-09-28 22:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-27 2:40 [PATCH 1/3] diff --stat: allow custom diffstat output width Junio C Hamano
2006-09-27 3:11 ` David Rientjes
2006-09-28 20:54 ` Linus Torvalds
2006-09-28 21:27 ` Junio C Hamano
2006-09-28 22:07 ` Linus Torvalds
2006-09-29 1:35 ` Junio C Hamano
2006-09-29 5:26 ` Junio C Hamano
2006-09-29 5:58 ` Linus Torvalds
2006-09-29 6:11 ` Junio C Hamano
2006-09-29 6:17 ` Linus Torvalds
2006-09-28 22:24 ` Adrian Bunk [this message]
2006-09-28 22:26 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060928222402.GC3469@stusta.de \
--to=bunk@stusta.de \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).