submodule: add repo_read_gitmodules
Teach the repo object to be able to populate the submodule_cache by reading the repository's gitmodules file. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
bf12fcdf5e
commit
69aba5329e
@ -1,6 +1,7 @@
|
||||
#ifndef SUBMODULE_H
|
||||
#define SUBMODULE_H
|
||||
|
||||
struct repository;
|
||||
struct diff_options;
|
||||
struct argv_array;
|
||||
struct oid_array;
|
||||
@ -46,6 +47,7 @@ int option_parse_recurse_submodules_worktree_updater(const struct option *opt,
|
||||
const char *arg, int unset);
|
||||
void load_submodule_cache(void);
|
||||
extern void gitmodules_config(void);
|
||||
extern void repo_read_gitmodules(struct repository *repo);
|
||||
extern void gitmodules_config_sha1(const unsigned char *commit_sha1);
|
||||
extern int is_submodule_initialized(const char *path);
|
||||
/*
|
||||
|
Reference in New Issue
Block a user