From: Jeff King <peff@peff.net>
To: Jay Soffian <jaysoffian@gmail.com>
Cc: Nanako Shiraishi <nanako3@lavabit.com>, git <git@vger.kernel.org>
Subject: Re: diff attribute ignored by show and log -p
Date: Thu, 17 Dec 2009 15:24:59 -0500 [thread overview]
Message-ID: <20091217202459.GC11367@sigill.intra.peff.net> (raw)
In-Reply-To: <76718490912170844i7d5f25d1hc32590b877dbf295@mail.gmail.com>
On Thu, Dec 17, 2009 at 11:44:16AM -0500, Jay Soffian wrote:
> > The need to give --ext-diff is mentioned in 72909be (Add diff-option
> > --ext-diff, 2007-06-30) but its log message doesn't 'explain' why external
> > diff isn't used by default and you need to pass that extra option.
>
> "To prevent funky games with external diff engines, git-log and
> friends prevent external diff engines from being called."
>
> Seemed reason enough to me.
I don't remember discussing it at that time, but much later when
touching the external diff code and adding textconv, Junio and I came to
the conclusion that textconv was reasonable to do as part of "git log
-p", as the result is just an internal conversion that still results in
a text diff. Whereas an external diff might be terribly confusing, as it
could be spawning graphical viewers or producing output which does not
match well with the log output.
> > Probably --ext-diff should be the default?
>
> Or available via a config option anyway.
If you were going to do such a config option, it might make sense to
make it an attribute of the diff driver rather than a global "use
external diff". Then each diff driver could say "Yes, I am reasonable to
be run as part of log -p".
-Peff
prev parent reply other threads:[~2009-12-17 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-17 4:46 diff attribute ignored by show and log -p Jay Soffian
2009-12-17 5:23 ` Jay Soffian
2009-12-17 13:17 ` Nanako Shiraishi
2009-12-17 16:44 ` Jay Soffian
2009-12-17 20:24 ` Jeff King [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=20091217202459.GC11367@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jaysoffian@gmail.com \
--cc=nanako3@lavabit.com \
/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