refs: store the main ref store inside the repository struct
[gitweb.git] / refs.h
diff --git a/refs.h b/refs.h
index ab3d2bec2f33b442f369002bc9b8349d49968839..f5ab68c0edd4756a30e31b60708ffa1cf5993c7e 100644 (file)
--- a/refs.h
+++ b/refs.h
@@ -760,9 +760,7 @@ int reflog_expire(const char *refname, const struct object_id *oid,
 
 int ref_storage_backend_exists(const char *name);
 
-#define get_main_ref_store(r) \
-       get_main_ref_store_##r()
-struct ref_store *get_main_ref_store_the_repository(void);
+struct ref_store *get_main_ref_store(struct repository *r);
 /*
  * Return the ref_store instance for the specified submodule. For the
  * main repository, use submodule==NULL; such a call cannot fail. For