Skip to content

Commit 2c915bb

Browse files
committed
Merge branch 'rs/combine-diff-with-incompatible-options' into maint
Certain diff options are currently ignored when combined-diff is shown; mark them as incompatible with the feature. source: <[email protected]> * rs/combine-diff-with-incompatible-options: combine-diff: abort if --output is given combine-diff: abort if --ignore-matching-lines is given
2 parents 8f6b482 + cfb19ae commit 2c915bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

combine-diff.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,13 @@ void diff_tree_combined(const struct object_id *oid,
14981498
int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
14991499
int need_generic_pathscan;
15001500

1501+
if (opt->ignore_regex_nr)
1502+
die("combined diff and '%s' cannot be used together",
1503+
"--ignore-matching-lines");
1504+
if (opt->close_file)
1505+
die("combined diff and '%s' cannot be used together",
1506+
"--output");
1507+
15011508
/* nothing to do, if no parents */
15021509
if (!num_parent)
15031510
return;

0 commit comments

Comments
 (0)