summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-05-15 08:42:06 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-15 16:17:53 +0200
commit12b23068307d512de7de8f551102f5928ab8b88a (patch)
treee4a95b97eca0d5cfa8c433846304093dc6fc2c07 /config.h
parentbuiltin/config: check for writeability after source is set up (diff)
downloadgit-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index db8b608064..e66c84520b 100644
--- a/config.h
+++ b/config.h
@@ -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);