summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-11 10:53:40 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-11 10:53:40 -0700
commit738c2187604756fea3901554a49f9137e02ed0ef (patch)
treeac786621832f1ac568761e96989ca984a836530e /submodule.c
parent3f835949e9b800619136f2511e84000c95916d6e (diff)
parent28452655af988094792483a51d188c58137760cd (diff)
downloadgit-738c2187604756fea3901554a49f9137e02ed0ef.tar.gz
Merge branch 'tr/void-diff-setup-done' into maint-1.7.11
* tr/void-diff-setup-done: diff_setup_done(): return void
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/submodule.c b/submodule.c
index 959d349ea7..19dc6a6c0d 100644
--- a/submodule.c
+++ b/submodule.c
@@ -574,8 +574,7 @@ static void calculate_changed_submodule_paths(void)
DIFF_OPT_SET(&diff_opts, RECURSIVE);
diff_opts.output_format |= DIFF_FORMAT_CALLBACK;
diff_opts.format_callback = submodule_collect_changed_cb;
- if (diff_setup_done(&diff_opts) < 0)
- die("diff_setup_done failed");
+ diff_setup_done(&diff_opts);
diff_tree_sha1(parent->item->object.sha1, commit->object.sha1, "", &diff_opts);
diffcore_std(&diff_opts);
diff_flush(&diff_opts);