mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
config: add options parameter to git_config_from_mem
The underlying config parser knows how to handle a config_options struct, but git_config_from_mem() always passes NULL. Let's allow our callers to specify the options struct. We could add a "_with_options" variant, but since there are only a handful of callers, let's just update them to pass NULL. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
63583203df
commit
4574f1aace
7
config.h
7
config.h
@@ -68,8 +68,11 @@ extern int git_config_from_file(config_fn_t fn, const char *, void *);
|
||||
extern int git_config_from_file_with_options(config_fn_t fn, const char *,
|
||||
void *,
|
||||
const struct config_options *);
|
||||
extern int git_config_from_mem(config_fn_t fn, const enum config_origin_type,
|
||||
const char *name, const char *buf, size_t len, void *data);
|
||||
extern int git_config_from_mem(config_fn_t fn,
|
||||
const enum config_origin_type,
|
||||
const char *name,
|
||||
const char *buf, size_t len,
|
||||
void *data, const struct config_options *opts);
|
||||
extern int git_config_from_blob_oid(config_fn_t fn, const char *name,
|
||||
const struct object_id *oid, void *data);
|
||||
extern void git_config_push_parameter(const char *text);
|
||||
|
||||
Reference in New Issue
Block a user