move connect_work_tree_and_git_dir to dir.h
authorStefan Beller <sbeller@google.com>
Mon, 12 Dec 2016 19:04:34 +0000 (11:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2016 23:15:07 +0000 (15:15 -0800)
commit47e83eb3b7d5410769d7f4d3930ba7fa12915680
tree5178ade037b710a5d67fe7ee9b4daf310ebffaee
parent1a248cf21d450eb911d01a89c84412c2da365e66
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>
dir.c
dir.h
submodule.c
submodule.h