sha1-name.c: add repo_get_oid()
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 2149dc4f56d9ad5460e622b244d72eb1b7c0fd7f..f6e87194d0a2dfd075acdc1386788f14b16990fe 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1380,7 +1380,8 @@ enum get_oid_result {
                       */
 };
 
-extern int get_oid(const char *str, struct object_id *oid);
+int repo_get_oid(struct repository *r, const char *str, struct object_id *oid);
+#define get_oid(str, oid) repo_get_oid(the_repository, str, oid)
 extern int get_oid_commit(const char *str, struct object_id *oid);
 extern int get_oid_committish(const char *str, struct object_id *oid);
 extern int get_oid_tree(const char *str, struct object_id *oid);