Commit 920e000d38c5514499a5f0236fdfe11f3b14d9b1

Vicent Marti 2011-06-18T01:17:58

config: Update examples

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/examples/general.c b/examples/general.c
index 1900f48..dbecbd2 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -425,7 +425,7 @@ int main (int argc, char** argv)
   git_config *cfg;
 
   // 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);
   printf("Autocorrect: %d\n", j);