]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.c
Merge branch 'jk/unused-params-even-more'
[thirdparty/git.git] / revision.c
index 695021d6fc751751e726c598d90d3ed632bc21cc..60553d829d822b39c811065b1fbb10df21a3bceb 100644 (file)
@@ -2689,6 +2689,10 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
        if (revs->first_parent_only && revs->bisect)
                die(_("--first-parent is incompatible with --bisect"));
 
+       if (revs->line_level_traverse &&
+           (revs->diffopt.output_format & ~(DIFF_FORMAT_PATCH | DIFF_FORMAT_NO_OUTPUT)))
+               die(_("-L does not yet support diff formats besides -p and -s"));
+
        if (revs->expand_tabs_in_log < 0)
                revs->expand_tabs_in_log = revs->expand_tabs_in_log_default;