]> git.ipfire.org Git - thirdparty/git.git/commit - submodule-config.c
submodule-config: add repository argument to submodule_from_{name, path}
authorStefan Beller <sbeller@google.com>
Wed, 28 Mar 2018 22:35:29 +0000 (15:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Mar 2018 16:44:50 +0000 (09:44 -0700)
commit3b8fb393bc32f8d96c2eb4c89349c864e5c56039
tree98f5dff330383e8f12503faf6e0739c251050b25
parentf793b895fd752e37301702eaff948a40e7c0a4b8
submodule-config: add repository argument to submodule_from_{name, path}

This enables submodule_from_{name, path} to handle arbitrary repositories.
All callers just pass in the_repository, a later patch will pass in other
repos.

While at it remove the extern key word from the declarations.

Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
submodule-config.c
submodule-config.h
submodule.c
t/helper/test-submodule-config.c