clean.c, ls-files.c: respect encapsulation of exclude_list_groups
[gitweb.git] / builtin / diff.c
index bf722987526f58f507acda2ea2f8da06da83d6ca..9650be2c50e6f79dbe033fae39f490d49c6318da 100644 (file)
@@ -302,8 +302,7 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
        argc = setup_revisions(argc, argv, &rev, NULL);
        if (!rev.diffopt.output_format) {
                rev.diffopt.output_format = DIFF_FORMAT_PATCH;
-               if (diff_setup_done(&rev.diffopt) < 0)
-                       die(_("diff_setup_done failed"));
+               diff_setup_done(&rev.diffopt);
        }
 
        DIFF_OPT_SET(&rev.diffopt, RECURSIVE);