diff options
author | Brandon Williams <bmwill@google.com> | 2016-12-16 11:03:18 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-22 11:47:33 -0800 |
commit | 9ebf689aad72bfc091da21e1d73a05308f1ace85 (patch) | |
tree | a6977a330a910da0e7760f96a9b1e70d6e3e9f60 /config.c | |
parent | f9f42560e2911a5eef9a3d463a63cfd48d54dd07 (diff) | |
download | git-9ebf689aad72bfc091da21e1d73a05308f1ace85.tar.gz |
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 'config.c')
-rw-r--r-- | config.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1214,10 +1214,10 @@ int git_config_from_mem(config_fn_t fn, const enum config_origin_type origin_typ return do_config_from(&top, fn, data); } -static int git_config_from_blob_sha1(config_fn_t fn, - const char *name, - const unsigned char *sha1, - void *data) +int git_config_from_blob_sha1(config_fn_t fn, + const char *name, + const unsigned char *sha1, + void *data) { enum object_type type; char *buf; |