summaryrefslogtreecommitdiff
path: root/object-store.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 17:21:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-26 17:05:55 (GMT)
commitbd27f50c801410433542a31122985b7d808b0a7f (patch)
treecc72707cf48d8190900a4b7dc81f85e828cc0e1c /object-store.h
parent1fea63e1da74b875790e8f2c63119c79fc5b52a6 (diff)
downloadgit-bd27f50c801410433542a31122985b7d808b0a7f.zip
git-bd27f50c801410433542a31122985b7d808b0a7f.tar.gz
git-bd27f50c801410433542a31122985b7d808b0a7f.tar.bz2
sha1_file: allow map_sha1_file to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> 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 'object-store.h')
-rw-r--r--object-store.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/object-store.h b/object-store.h
index d9cc875..fef33f3 100644
--- a/object-store.h
+++ b/object-store.h
@@ -127,7 +127,6 @@ void raw_object_store_clear(struct raw_object_store *o);
*/
void sha1_file_name(struct repository *r, struct strbuf *buf, const unsigned char *sha1);
-#define map_sha1_file(r, s, sz) map_sha1_file_##r(s, sz)
-void *map_sha1_file_the_repository(const unsigned char *sha1, unsigned long *size);
+void *map_sha1_file(struct repository *r, const unsigned char *sha1, unsigned long *size);
#endif /* OBJECT_STORE_H */