Merge branch 'maint'
[gitweb.git] / builtin / diff.c
index da8f6aac2bde9bb93cb059898a21c19c9bb27634..ecfdd1b6df2983cfdc0ac618801c992f8eb12319 100644 (file)
@@ -298,8 +298,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);