mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-31 13:07:34 +00:00
examples/general.c: update for recent API renaming of git_config_get_int
git_config_get_int --> git_config_get_int32
This commit is contained in:
parent
d3104fa0a3
commit
54ccc71786
@ -430,14 +430,14 @@ int main (int argc, char** argv)
|
||||
printf("\n*Config Listing*\n");
|
||||
|
||||
const char *email;
|
||||
int j;
|
||||
int32_t j;
|
||||
|
||||
git_config *cfg;
|
||||
|
||||
// Open a config object so we can read global values from it.
|
||||
git_config_open_ondisk(&cfg, "~/.gitconfig");
|
||||
|
||||
git_config_get_int(cfg, "help.autocorrect", &j);
|
||||
git_config_get_int32(cfg, "help.autocorrect", &j);
|
||||
printf("Autocorrect: %d\n", j);
|
||||
|
||||
git_config_get_string(cfg, "user.email", &email);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user