mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 12:24:11 +00:00
config: Update examples
This commit is contained in:
parent
dbe70bd5c3
commit
920e000d38
@ -425,7 +425,7 @@ int main (int argc, char** argv)
|
|||||||
git_config *cfg;
|
git_config *cfg;
|
||||||
|
|
||||||
// Open a config object so we can read global values from it.
|
// Open a config object so we can read global values from it.
|
||||||
git_config_open_global(&cfg);
|
git_config_open_ondisk(&cfg, "~/.gitconfig");
|
||||||
|
|
||||||
git_config_get_int(cfg, "help.autocorrect", &j);
|
git_config_get_int(cfg, "help.autocorrect", &j);
|
||||||
printf("Autocorrect: %d\n", j);
|
printf("Autocorrect: %d\n", j);
|
||||||
|
Loading…
Reference in New Issue
Block a user