aboutsummaryrefslogtreecommitdiffstats
path: root/combine-diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-07-11 15:38:48 -0700
committerJunio C Hamano <gitster@pobox.com>2022-07-11 15:38:48 -0700
commita2d1f00bdd79e3059e6a819c0f65e8071e39dac8 (patch)
tree0f075cd0f4f191f185f1216aec7c937deb44b86e /combine-diff.c
parent30cc8d0f147546d4dd77bf497f4dec51e7265bd8 (diff)
parentcfb19ae05f4565bc9d0a0cb3a23a3d2ab9fb8fab (diff)
downloadgit-a2d1f00bdd79e3059e6a819c0f65e8071e39dac8.tar.gz
Merge branch 'rs/combine-diff-with-incompatible-options'
Certain diff options are currently ignored when combined-diff is shown; mark them as incompatible with the feature. * rs/combine-diff-with-incompatible-options: combine-diff: abort if --output is given combine-diff: abort if --ignore-matching-lines is given
Diffstat (limited to 'combine-diff.c')
-rw-r--r--combine-diff.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/combine-diff.c b/combine-diff.c
index b724f02123..b0ece95480 100644
--- a/combine-diff.c
+++ b/combine-diff.c
@@ -1498,6 +1498,13 @@ void diff_tree_combined(const struct object_id *oid,
int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
int need_generic_pathscan;
+ if (opt->ignore_regex_nr)
+ die("combined diff and '%s' cannot be used together",
+ "--ignore-matching-lines");
+ if (opt->close_file)
+ die("combined diff and '%s' cannot be used together",
+ "--output");
+
/* nothing to do, if no parents */
if (!num_parent)
return;