diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2016-02-19 10:16:01 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-22 09:36:33 -0800 |
commit | 473166b99078a2724b4fcda11a6a5327b9af60da (patch) | |
tree | d20463aea79f73f32735816143441b67e7eca6a5 /submodule-config.c | |
parent | rename git_config_from_buf to git_config_from_mem (diff) | |
download | tgif-473166b99078a2724b4fcda11a6a5327b9af60da.tar.xz |
config: add 'origin_type' to config_source struct
Use the config origin_type to print more detailed error messages that
inform the user about the origin of a config error (file, stdin, blob).
Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.c')
-rw-r--r-- | submodule-config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/submodule-config.c b/submodule-config.c index b85a937959..92502b594d 100644 --- a/submodule-config.c +++ b/submodule-config.c @@ -427,8 +427,8 @@ static const struct submodule *config_from(struct submodule_cache *cache, parameter.commit_sha1 = commit_sha1; parameter.gitmodules_sha1 = sha1; parameter.overwrite = 0; - git_config_from_mem(parse_config, rev.buf, config, config_size, - ¶meter); + git_config_from_mem(parse_config, "submodule-blob", rev.buf, + config, config_size, ¶meter); free(config); switch (lookup_type) { |