summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-06-27 09:28:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-27 19:45:17 (GMT)
commitd3b4705ab81c01cb57dd356d96e981de78d65a5d (patch)
tree170f2dcd53101776ae88d17aa5d084b43d9623ef /cache.h
parent8dca754b1e874719a732bc9ab7b0e14b21b1bc10 (diff)
downloadgit-d3b4705ab81c01cb57dd356d96e981de78d65a5d.zip
git-d3b4705ab81c01cb57dd356d96e981de78d65a5d.tar.gz
git-d3b4705ab81c01cb57dd356d96e981de78d65a5d.tar.bz2
sha1-file.c: remove the_repo from read_object_with_reference()
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 'cache.h')
-rw-r--r--cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index bf20337..cd84cc9 100644
--- a/cache.h
+++ b/cache.h
@@ -1500,7 +1500,8 @@ int df_name_compare(const char *name1, int len1, int mode1, const char *name2, i
int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
-void *read_object_with_reference(const struct object_id *oid,
+void *read_object_with_reference(struct repository *r,
+ const struct object_id *oid,
const char *required_type,
unsigned long *size,
struct object_id *oid_ret);