diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-11-26 11:57:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-26 11:57:31 -0800 |
commit | aa14a0c3f191ee4df7344eed119be5b4a527a0ff (patch) | |
tree | 1f0b79d76fef5d196d2aeed2e858c2866e71a6a0 /builtin-diff.c | |
parent | 78a0014d807dd74aec160c6fc6db8e2fb7e7e9b1 (diff) | |
parent | 5aa3bdd50d4e4f59c41ee6e70ae1e738a3a28cc0 (diff) | |
download | git-aa14a0c3f191ee4df7344eed119be5b4a527a0ff.tar.gz |
Merge branch 'maint'
* maint:
Teach "git diff" to honour --[no-]ext-diff
Diffstat (limited to 'builtin-diff.c')
-rw-r--r-- | builtin-diff.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/builtin-diff.c b/builtin-diff.c index 7ceceeb6ff..b90d8bcdb6 100644 --- a/builtin-diff.c +++ b/builtin-diff.c @@ -290,6 +290,9 @@ int cmd_diff(int argc, const char **argv, const char *prefix) /* Otherwise, we are doing the usual "git" diff */ rev.diffopt.skip_stat_unmatch = !!diff_auto_refresh_index; + /* Default to let external be used */ + DIFF_OPT_SET(&rev.diffopt, ALLOW_EXTERNAL); + if (nongit) die("Not a git repository"); argc = setup_revisions(argc, argv, &rev, NULL); @@ -298,7 +301,7 @@ int cmd_diff(int argc, const char **argv, const char *prefix) if (diff_setup_done(&rev.diffopt) < 0) die("diff_setup_done failed"); } - DIFF_OPT_SET(&rev.diffopt, ALLOW_EXTERNAL); + DIFF_OPT_SET(&rev.diffopt, RECURSIVE); DIFF_OPT_SET(&rev.diffopt, ALLOW_TEXTCONV); |