mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
e44b018c52
commit
12b2306830
2
config.h
2
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user