From: Alex Riesen <raa.lkml@gmail.com>
To: Junio C Hamano <junkio@cox.net>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] Add a configuration option to control diffstat after merge
Date: Wed, 23 May 2007 22:43:12 +0200 [thread overview]
Message-ID: <20070523204312.GD2554@steel.home> (raw)
In-Reply-To: <7v646j2t1e.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano, Wed, May 23, 2007 22:18:05 +0200:
> Alex Riesen <raa.lkml@gmail.com> writes:
>
> > The diffstat can be controlled either with command-line options
> > (--summary|--no-summary) or with merge.diffstat. The default is
> > left as it was: diffstat is active by default.
> >
> > Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> > ---
> >
> > I have to explain the implementation a bit: in Windows, every exec is
> > *very* expensive, so I tried to avoid a call to git-config as long as
> > possible. The stupid OS is my reason for this change, actually:
> > diffstat not just takes too long. It also takes a *long* while before
> > the diffstat even starts!
>
> Even on Linux, if your project is well modularized and your
> workflow is "merge small and merge often" like the kernel is, it
> is not unusual that the final diffstat takes much longer than a
> merge. But the diffstat is not an eye-candy but is an important
> safety measure from the workflow point of view.
Can't have it on Windows. It makes me prefer git-am to git-merge.
> > @@ -168,6 +169,11 @@ do
> > shift
> > done
> >
> > +if test -z "$show_diffstat"; then
> > + test "$(git-config merge.diffstat)" = false && show_diffstat=false
> > + test -z "$show_diffstat" && show_diffstat=t
> > +fi
>
> Isn't this hunk wrong?
>
It is. Will resend in an hour, unless you beat me to it
> if test -z "$show_diffstat"; then
> test "$(git-config --bool merge.diffstat)" = false && show_diffstat=false
> test -z "$show_diffstat" && show_diffstat=t
> fi
Thanks!
next prev parent reply other threads:[~2007-05-23 20:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-23 15:28 [PATCH] disable merge summaries if they are disabled Alex Riesen
2007-05-23 16:03 ` Alex Riesen
2007-05-23 18:22 ` Junio C Hamano
2007-05-23 19:58 ` Alex Riesen
2007-05-23 20:02 ` [PATCH] Add a configuration option to control diffstat after merge Alex Riesen
2007-05-23 20:18 ` Junio C Hamano
2007-05-23 20:43 ` Alex Riesen [this message]
2007-05-23 21:01 ` Alex Riesen
2007-05-23 20:03 ` [PATCH] disable merge summaries if they are disabled Junio C Hamano
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=20070523204312.GD2554@steel.home \
--to=raa.lkml@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).