clean.c, ls-files.c: respect encapsulation of exclude_list_groups
[gitweb.git] / builtin / checkout.c
index e060efb2a281865afbc6e5ae23d3f0fe2351dab0..45aa0a87019c4f51802ea896edead95379eab5fb 100644 (file)
@@ -315,8 +315,7 @@ static void show_local_changes(struct object *head, struct diff_options *opts)
        init_revisions(&rev, NULL);
        rev.diffopt.flags = opts->flags;
        rev.diffopt.output_format |= DIFF_FORMAT_NAME_STATUS;
-       if (diff_setup_done(&rev.diffopt) < 0)
-               die(_("diff_setup_done failed"));
+       diff_setup_done(&rev.diffopt);
        add_pending_object(&rev, head, NULL);
        run_diff_index(&rev, 0);
 }