git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] diff: respect --no-ext-diff with typechange
@ 2012-07-17  0:27 Jakub Vrana
  2012-07-17  4:16 ` Jeff King
  0 siblings, 1 reply; 8+ messages in thread
From: Jakub Vrana @ 2012-07-17  0:27 UTC (permalink / raw)
  To: git; +Cc: gitster

If external diff is specified through diff.external then it is used even if
`git diff --no-ext-diff` is used when there is a typechange.

Signed-off-by: Jakub Vrana <jakub@vrana.cz>
---
 diff.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/diff.c b/diff.c
index 208096f..898d610 100644
--- a/diff.c
+++ b/diff.c
@@ -3074,6 +3074,9 @@ static void run_diff(struct diff_filepair *p, struct
diff_options *o)
 	if (o->prefix_length)
 		strip_prefix(o->prefix_length, &name, &other);
 
+	if (!DIFF_OPT_TST(o, ALLOW_EXTERNAL))
+		pgm = NULL;
+
 	if (DIFF_PAIR_UNMERGED(p)) {
 		run_diff_cmd(pgm, name, NULL, attr_path,
 			     NULL, NULL, NULL, o, p);
-- 
1.7.10.msysgit.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-07-19 11:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-17  0:27 [PATCH] diff: respect --no-ext-diff with typechange Jakub Vrana
2012-07-17  4:16 ` Jeff King
2012-07-18  1:07   ` Jakub Vrana
2012-07-18  5:08     ` Junio C Hamano
2012-07-18  6:23       ` Jeff King
2012-07-18  7:06         ` Jeff King
2012-07-18 22:47           ` Junio C Hamano
2012-07-19 11:49             ` Jeff King

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).