mirror of
https://github.com/git/git.git
synced 2026-06-30 19:58:12 +00:00
Merge branch 'ps/config-env-pairs'
Introduce two new ways to feed configuration variable-value pairs via environment variables, and tweak the way GIT_CONFIG_PARAMETERS encodes variable/value pairs to make it more robust. * ps/config-env-pairs: config: allow specifying config entries via envvar pairs environment: make `getenv_safe()` a public function config: store "git -c" variables using more robust format config: parse more robust format in GIT_CONFIG_PARAMETERS config: extract function to parse config pairs quote: make sq_dequote_step() a public function config: add new way to pass config via `--config-env` git: add `--super-prefix` to usage string
This commit is contained in:
1
config.h
1
config.h
@@ -138,6 +138,7 @@ int git_config_from_mem(config_fn_t fn,
|
||||
int git_config_from_blob_oid(config_fn_t fn, const char *name,
|
||||
const struct object_id *oid, void *data);
|
||||
void git_config_push_parameter(const char *text);
|
||||
void git_config_push_env(const char *spec);
|
||||
int git_config_from_parameters(config_fn_t fn, void *data);
|
||||
void read_early_config(config_fn_t cb, void *data);
|
||||
void read_very_early_config(config_fn_t cb, void *data);
|
||||
|
||||
Reference in New Issue
Block a user