From: Junio C Hamano <junkio@cox.net>
To: apodtele <apodtele@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/2] diff --stat: use asymptotic scaling in graph
Date: Sat, 14 Oct 2006 12:06:01 -0700 [thread overview]
Message-ID: <7v7iz290py.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <d620685f0610130656u55079a1fkc2c98a82f3aa4a33@mail.gmail.com> (apodtele@gmail.com's message of "Fri, 13 Oct 2006 09:56:58 -0400")
apodtele <apodtele@gmail.com> writes:
> Before my patch is completely forgotten, let me critique the current
> approach. Currently everything is great and beautiful unless one
> particular change adds a couple of hundred lines, say, to a man page.
> With large changes in play, small changes are squashed to a single
> character. Would you argue that this scenario correctly represent
> importance of man pages? Would you say, that it's not misleading that
> 1-, 2-, and 5-liners all look the same as long as a man page is
> prominently shown? Moreover, 1-, 2-, and 5- liners may look different
> depending on the size of that man page. The current approach is not
> invariant; it is, however, normalized as needed. "Normalized" is good,
> "as needed" is bad.
One thing that mildly irritates me has been:
git log --stat v2.6.17..
which, as you correctly point out, shows the bad effect of
scaling per commit. "Normalized as needed" is good. What's bad
is "not normalizing across things we show".
Even with your non-linear scaling, you would need to make sure
every commit gets the same graph width; I do not think they
currently do, due to name part scaling.
People are used to seeing the traditional diffstat output, so
any improvement you make that is different from it (including
e.g. "being able to show differences between 1- and 2- liner
patch when a monster 800- liner happens to be in the same patch
set", which is a worthwhile goal) will look bizarre and/or
misleading to them and they would not like it.
With the change to align things in the middle, it might become
easier to accept, because then it is _so_ obviously different
from traditional diffstat, it is very clear to people that the
output is different but still they can easily figure out that
longer bars are for larger changes.
And this new output needs to be an option.
prev parent reply other threads:[~2006-10-14 19:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-12 19:37 [PATCH 1/2] diff --stat: use asymptotic scaling in graph apodtele
2006-10-12 20:16 ` Martin Waitz
2006-10-12 21:37 ` apodtele
2006-10-12 22:20 ` A Large Angry SCM
2006-10-12 22:27 ` Martin Waitz
2006-10-12 22:48 ` A Large Angry SCM
2006-10-12 22:52 ` Johannes Schindelin
2006-10-12 23:12 ` apodtele
2006-10-13 0:39 ` Nicolas Pitre
2006-10-13 13:25 ` apodtele
2006-10-13 13:31 ` Andy Whitcroft
2006-10-12 21:53 ` Junio C Hamano
2006-10-12 22:15 ` A Large Angry SCM
2006-10-12 22:24 ` Junio C Hamano
2006-10-13 13:56 ` apodtele
2006-10-14 19:06 ` Junio C Hamano [this message]
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=7v7iz290py.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=apodtele@gmail.com \
--cc=git@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.