summaryrefslogtreecommitdiff
path: root/object-store.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 17:21:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-26 17:05:55 (GMT)
commita68377b5dedbe7e5230901577eac9b9a00cb26b4 (patch)
tree59f00895162ba14b68cf64b9c35a3771905b9dcb /object-store.h
parente977fc7469d0524b31eea22431b7c6ef6616741f (diff)
downloadgit-a68377b5dedbe7e5230901577eac9b9a00cb26b4.zip
git-a68377b5dedbe7e5230901577eac9b9a00cb26b4.tar.gz
git-a68377b5dedbe7e5230901577eac9b9a00cb26b4.tar.bz2
sha1_file: allow sha1_file_name 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 0367174..d9cc875 100644
--- a/object-store.h
+++ b/object-store.h
@@ -125,8 +125,7 @@ void raw_object_store_clear(struct raw_object_store *o);
* Put in `buf` the name of the file in the local object database that
* would be used to store a loose object with the specified sha1.
*/
-#define sha1_file_name(r, b, s) sha1_file_name_##r(b, s)
-void sha1_file_name_the_repository(struct strbuf *buf, const unsigned char *sha1);
+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);