summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-12-12 19:04:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-12 23:15:07 (GMT)
commit47e83eb3b7d5410769d7f4d3930ba7fa12915680 (patch)
tree5178ade037b710a5d67fe7ee9b4daf310ebffaee /dir.h
parent1a248cf21d450eb911d01a89c84412c2da365e66 (diff)
downloadgit-47e83eb3b7d5410769d7f4d3930ba7fa12915680.zip
git-47e83eb3b7d5410769d7f4d3930ba7fa12915680.tar.gz
git-47e83eb3b7d5410769d7f4d3930ba7fa12915680.tar.bz2
move connect_work_tree_and_git_dir to dir.h
That function was primarily used by submodule code, but the function itself is not inherently about submodules. In the next patch we'll introduce relocate_git_dir, which can be used by worktrees as well, so find a neutral middle ground in dir.h. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dir.h b/dir.h
index 97c83bb..051674a 100644
--- a/dir.h
+++ b/dir.h
@@ -335,4 +335,5 @@ struct untracked_cache *read_untracked_extension(const void *data, unsigned long
void write_untracked_extension(struct strbuf *out, struct untracked_cache *untracked);
void add_untracked_cache(struct index_state *istate);
void remove_untracked_cache(struct index_state *istate);
+extern void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir);
#endif