]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.c
get_sha1_oneline: check return value of parse_object
[thirdparty/git.git] / revision.c
index 7e2f4f1eb5090588fc6515b78d39b7c7a4eda00d..6e85aaa3fb30e98f3b02f094af7f1763577cdb8d 100644 (file)
@@ -1290,8 +1290,10 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
        if (revs->diffopt.output_format & ~DIFF_FORMAT_NO_OUTPUT)
                revs->diff = 1;
 
-       /* Pickaxe and rename following needs diffs */
-       if (revs->diffopt.pickaxe || DIFF_OPT_TST(&revs->diffopt, FOLLOW_RENAMES))
+       /* Pickaxe, diff-filter and rename following need diffs */
+       if (revs->diffopt.pickaxe ||
+           revs->diffopt.filter ||
+           DIFF_OPT_TST(&revs->diffopt, FOLLOW_RENAMES))
                revs->diff = 1;
 
        if (revs->topo_order)