submodule.h: drop declaration of connect_work_tree_and_git_dir
The function connect_work_tree_and_git_dir is declared in both submodule.h and dir.h, such that one of them is redundant. As the function is implemented in dir.c, drop the declaration from submodule.h Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Beller committed
Mar 28, 2018 at 15:35 UTC
61aad92b852278afc6364f9ab4c33c3740fb9e66
1 file changed
-1
submodule.h
-1
@@ -105,7 +105,6 @@ extern int push_unpushed_submodules(struct oid_array *commits,
105
const char **refspec, int refspec_nr,
106
const struct string_list *push_options,
107
int dry_run);
108
-extern void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir);
108
/*
109
* Given a submodule path (as in the index), return the repository
110
* path of that submodule in 'buf'. Return -1 on error or when the