summaryrefslogtreecommitdiff
path: root/patch-ids.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-09-21 15:57:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-21 16:48:11 (GMT)
commita7edadda593e34243c1cd3b3db750d502acf9b83 (patch)
treeb8cb124f21e0fbf64d405e4b68a3b41f888a7902 /patch-ids.c
parent7e196c3a28513225d48bd853846f5618419948c1 (diff)
downloadgit-a7edadda593e34243c1cd3b3db750d502acf9b83.zip
git-a7edadda593e34243c1cd3b3db750d502acf9b83.tar.gz
git-a7edadda593e34243c1cd3b3db750d502acf9b83.tar.bz2
patch-ids.c: remove implicit dependency on the_index
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'patch-ids.c')
-rw-r--r--patch-ids.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch-ids.c b/patch-ids.c
index 342950c..7da8604 100644
--- a/patch-ids.c
+++ b/patch-ids.c
@@ -56,10 +56,10 @@ static int patch_id_cmp(const void *cmpfn_data,
return oidcmp(&a->patch_id, &b->patch_id);
}
-int init_patch_ids(struct patch_ids *ids)
+int init_patch_ids(struct repository *r, struct patch_ids *ids)
{
memset(ids, 0, sizeof(*ids));
- repo_diff_setup(the_repository, &ids->diffopts);
+ repo_diff_setup(r, &ids->diffopts);
ids->diffopts.detect_rename = 0;
ids->diffopts.flags.recursive = 1;
diff_setup_done(&ids->diffopts);