int ref_storage_backend_exists(const char *name);
-struct ref_store *get_main_ref_store(void);
+#define get_main_ref_store(r) \
+ get_main_ref_store_##r()
+struct ref_store *get_main_ref_store_the_repository(void);
/*
* Return the ref_store instance for the specified submodule. For the
* main repository, use submodule==NULL; such a call cannot fail. For