mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-10 19:45:15 +00:00
examples: fix config getter param order
This commit is contained in:
parent
34402bcdb9
commit
2af1c26641
@ -437,10 +437,10 @@ int main (int argc, char** argv)
|
||||
// Open a config object so we can read global values from it.
|
||||
git_config_open_ondisk(&cfg, "~/.gitconfig");
|
||||
|
||||
git_config_get_int32(cfg, "help.autocorrect", &j);
|
||||
git_config_get_int32(&j, cfg, "help.autocorrect");
|
||||
printf("Autocorrect: %d\n", j);
|
||||
|
||||
git_config_get_string(cfg, "user.email", &email);
|
||||
git_config_get_string(&email, cfg, "user.email");
|
||||
printf("Email: %s\n", email);
|
||||
|
||||
// Finally, when you're done with the repository, you can free it as well.
|
||||
|
Loading…
Reference in New Issue
Block a user