[PATCH 1/7] Expose expand_namespace API
From: Richard Maw <hidden>
Date: 2017-08-13 19:36:33
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Richard Maw <hidden>
Date: 2017-08-13 19:36:33
Subsystem:
the rest · Maintainer:
Linus Torvalds
Namespaces will not only be settable with GIT_NAMESPACE, so this previously internal helper needs to be made available to other code. --- cache.h | 1 + environment.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/cache.h b/cache.h
index 71fe092..e01b8a2 100644
--- a/cache.h
+++ b/cache.h@@ -485,6 +485,7 @@ extern char *get_graft_file(void); extern int set_git_dir(const char *path); extern int get_common_dir_noenv(struct strbuf *sb, const char *gitdir); extern int get_common_dir(struct strbuf *sb, const char *gitdir); +extern char *expand_namespace(const char *raw_namespace); extern const char *get_git_namespace(void); extern const char *strip_namespace(const char *namespaced_ref); extern const char *get_super_prefix(void);
diff --git a/environment.c b/environment.c
index 3fd4b10..97dfa8c 100644
--- a/environment.c
+++ b/environment.c@@ -123,7 +123,7 @@ const char * const local_repo_env[] = { NULL }; -static char *expand_namespace(const char *raw_namespace) +char *expand_namespace(const char *raw_namespace) { struct strbuf buf = STRBUF_INIT; struct strbuf **components, **c;
--
2.9.0