Merge branch 'tr/void-diff-setup-done'
authorJunio C Hamano <gitster@pobox.com>
Wed, 22 Aug 2012 18:52:26 +0000 (11:52 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Aug 2012 18:52:27 +0000 (11:52 -0700)
Remove unnecessary code.

* tr/void-diff-setup-done:
  diff_setup_done(): return void

1  2 
builtin/blame.c
builtin/checkout.c
builtin/diff.c
builtin/merge.c
diff-no-index.c
diff.c
diff.h
merge-recursive.c
notes-merge.c
revision.c
submodule.c

diff --cc builtin/blame.c
Simple merge
Simple merge
diff --cc builtin/diff.c
Simple merge
diff --cc builtin/merge.c
Simple merge
diff --cc diff-no-index.c
index 7d805a06afacae7eaa36a192e3a16406ef0fb41f,b245ca8ad84732c8a5c9a227bd341b970ce8a62a..b34b5aa7dfc4d1e34f64a6ade5e22be249b9517c
@@@ -258,13 -256,11 +258,12 @@@ void diff_no_index(struct rev_info *rev
        DIFF_OPT_SET(&revs->diffopt, NO_INDEX);
  
        revs->max_count = -2;
-       if (diff_setup_done(&revs->diffopt) < 0)
-               die("diff_setup_done failed");
+       diff_setup_done(&revs->diffopt);
  
 -      if (queue_diff(&revs->diffopt, revs->diffopt.pathspec.raw[0],
 -                     revs->diffopt.pathspec.raw[1]))
 +      setup_diff_pager(&revs->diffopt);
 +      DIFF_OPT_SET(&revs->diffopt, EXIT_WITH_STATUS);
 +
 +      if (queue_diff(&revs->diffopt, paths[0], paths[1]))
                exit(1);
        diff_set_mnemonic_prefix(&revs->diffopt, "1/", "2/");
        diffcore_std(&revs->diffopt);
diff --cc diff.c
Simple merge
diff --cc diff.h
Simple merge
Simple merge
diff --cc notes-merge.c
Simple merge
diff --cc revision.c
Simple merge
diff --cc submodule.c
Simple merge