]> git.ipfire.org Git - thirdparty/git.git/commitdiff
submodule.h: drop declaration of connect_work_tree_and_git_dir
authorStefan Beller <sbeller@google.com>
Wed, 28 Mar 2018 22:35:26 +0000 (15:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Mar 2018 16:44:50 +0000 (09:44 -0700)
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>
submodule.h

index b9b7ef0030a732bb81745641413f9f013588c91d..b6130e6287843baaf073d1fbe0b7a2ba2e8c37a1 100644 (file)
@@ -105,7 +105,6 @@ extern int push_unpushed_submodules(struct oid_array *commits,
                                    const char **refspec, int refspec_nr,
                                    const struct string_list *push_options,
                                    int dry_run);
-extern void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir);
 /*
  * Given a submodule path (as in the index), return the repository
  * path of that submodule in 'buf'. Return -1 on error or when the