aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2016-12-16 11:03:18 -0800
committerJunio C Hamano <gitster@pobox.com>2016-12-22 11:47:33 -0800
commit9ebf689aad72bfc091da21e1d73a05308f1ace85 (patch)
treea6977a330a910da0e7760f96a9b1e70d6e3e9f60 /cache.h
parentf9f42560e2911a5eef9a3d463a63cfd48d54dd07 (diff)
downloadgit-9ebf689aad72bfc091da21e1d73a05308f1ace85.tar.gz
git-9ebf689aad72bfc091da21e1d73a05308f1ace85.tar.xz
submodules: load gitmodules file from commit sha1
teach submodules to load a '.gitmodules' file from a commit sha1. This enables the population of the submodule_cache to be based on the state of the '.gitmodules' file from a particular commit. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index e12a5d912..de237cab6 100644
--- a/cache.h
+++ b/cache.h
@@ -1693,6 +1693,8 @@ extern int git_default_config(const char *, const char *, void *);
extern int git_config_from_file(config_fn_t fn, const char *, void *);
extern int git_config_from_mem(config_fn_t fn, const enum config_origin_type,
const char *name, const char *buf, size_t len, void *data);
+extern int git_config_from_blob_sha1(config_fn_t fn, const char *name,
+ const unsigned char *sha1, void *data);
extern void git_config_push_parameter(const char *text);
extern int git_config_from_parameters(config_fn_t fn, void *data);
extern void git_config(config_fn_t fn, void *);