diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-08-22 11:52:26 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-22 11:52:27 -0700 |
commit | 9cd33bbc529bfa830c687d377433c46474d10e6a (patch) | |
tree | 79268934569751906061421fcd5c46b751441c67 /builtin/checkout.c | |
parent | 8d35c114579fd870feb61f3746e1371634fd2163 (diff) | |
parent | 28452655af988094792483a51d188c58137760cd (diff) | |
download | git-9cd33bbc529bfa830c687d377433c46474d10e6a.tar.gz |
Merge branch 'tr/void-diff-setup-done'
Remove unnecessary code.
* tr/void-diff-setup-done:
diff_setup_done(): return void
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r-- | builtin/checkout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c index d812219b30..7d922c612a 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -316,8 +316,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); } |