diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-05-15 08:42:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-05-15 16:17:53 +0200 |
commit | 12b23068307d512de7de8f551102f5928ab8b88a (patch) | |
tree | e4a95b97eca0d5cfa8c433846304093dc6fc2c07 /config.h | |
parent | builtin/config: check for writeability after source is set up (diff) | |
download | git-12b23068307d512de7de8f551102f5928ab8b88a.tar.xz git-12b23068307d512de7de8f551102f5928ab8b88a.zip |
config: make the config source const
The `struct git_config_source` passed to `config_with_options()` is
never modified. Let's mark it as `const` to clarify.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -232,7 +232,7 @@ void git_config(config_fn_t fn, void *); * sets `opts.respect_includes` to `1` by default. */ int config_with_options(config_fn_t fn, void *, - struct git_config_source *config_source, + const struct git_config_source *config_source, struct repository *repo, const struct config_options *opts); |