Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2016-12-16 22:03:18 +0300
committerJunio C Hamano <gitster@pobox.com>2016-12-22 22:47:33 +0300
commit9ebf689aad72bfc091da21e1d73a05308f1ace85 (patch)
treea6977a330a910da0e7760f96a9b1e70d6e3e9f60 /submodule-config.h
parentf9f42560e2911a5eef9a3d463a63cfd48d54dd07 (diff)
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 'submodule-config.h')
-rw-r--r--submodule-config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/submodule-config.h b/submodule-config.h
index d05c542d2c..78584ba6a7 100644
--- a/submodule-config.h
+++ b/submodule-config.h
@@ -29,6 +29,9 @@ 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,
const char *path);
+extern int gitmodule_sha1_from_commit(const unsigned char *commit_sha1,
+ unsigned char *gitmodules_sha1,
+ struct strbuf *rev);
void submodule_free(void);
#endif /* SUBMODULE_CONFIG_H */