]> granicus.if.org Git - git/commit
submodule-config: pass repository as argument to config_from_gitmodules
authorAntonio Ospite <ao2@ao2.it>
Tue, 26 Jun 2018 10:47:09 +0000 (12:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jun 2018 20:16:01 +0000 (13:16 -0700)
commit9a0fb3e772922685a8a3ed259afd52d097bd339c
treeb200a61b2a2c3ec55e03852d64b88fe3bcef8574
parent588929d54d110024fcce6b427e28a8a428a93d88
submodule-config: pass repository as argument to config_from_gitmodules

Generalize config_from_gitmodules() to accept a repository as an argument.

This is in preparation to reuse the function in repo_read_gitmodules in
order to have a single point where the '.gitmodules' file is accessed.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Acked-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule-config.c