summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-03-26 02:42:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-14 10:53:25 (GMT)
commit18d0002d6ddc191454b6b4a99cdac65fc7ff9ece (patch)
treed8c5067ff5875719269bd32eb6466b2d939759f1 /refs
parent9e7ec634a130535982e9bc63d65c2fe8c076a662 (diff)
downloadgit-18d0002d6ddc191454b6b4a99cdac65fc7ff9ece.zip
git-18d0002d6ddc191454b6b4a99cdac65fc7ff9ece.tar.gz
git-18d0002d6ddc191454b6b4a99cdac65fc7ff9ece.tar.bz2
refs: rename get_ref_store() to get_submodule_ref_store() and make it public
This function is intended to replace *_submodule() refs API. It provides a ref store for a specific submodule, which can be operated on by a new set of refs API. 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 'refs')
-rw-r--r--refs/refs-internal.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index 0cca280..f20dde3 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -646,18 +646,6 @@ struct ref_store {
void base_ref_store_init(struct ref_store *refs,
const struct ref_storage_be *be);
-/*
- * Return the ref_store instance for the specified submodule. For the
- * main repository, use submodule==NULL; such a call cannot fail. For
- * a submodule, the submodule must exist and be a nonbare repository,
- * otherwise return NULL. If the requested reference store has not yet
- * been initialized, initialize it first.
- *
- * For backwards compatibility, submodule=="" is treated the same as
- * submodule==NULL.
- */
-struct ref_store *get_ref_store(const char *submodule);
-
const char *resolve_ref_recursively(struct ref_store *refs,
const char *refname,
int resolve_flags,