submodule: use new config API for worktree configurations
We remove the extracted functions and directly parse into and read out of the cache. This allows us to have one unified way of accessing submodule configuration values specific to single submodules. Regardless whether we need to access a configuration from history or from the worktree. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
0d9f282c94
commit
851e18c385
@ -18,6 +18,7 @@ struct submodule {
|
||||
unsigned char gitmodules_sha1[20];
|
||||
};
|
||||
|
||||
int parse_submodule_config_option(const char *var, const char *value);
|
||||
const struct submodule *submodule_from_name(const unsigned char *commit_sha1,
|
||||
const char *name);
|
||||
const struct submodule *submodule_from_path(const unsigned char *commit_sha1,
|
||||
|
Reference in New Issue
Block a user