Commit 25da1acbc7c931caf2555282d2f5e4e28906d21c

Etienne Samson 2018-09-25T14:43:19

config: fix incorrect filename in documentation comment The underlying code uses GIT_CONFIG_FILENAME_GLOBAL, which is .gitconfig.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/git2/config.h b/include/git2/config.h
index b9649f9..f32f7af 100644
--- a/include/git2/config.h
+++ b/include/git2/config.h
@@ -262,7 +262,7 @@ GIT_EXTERN(int) git_config_open_level(
  * Open the global/XDG configuration file according to git's rules
  *
  * Git allows you to store your global configuration at
- * `$HOME/.config` or `$XDG_CONFIG_HOME/git/config`. For backwards
+ * `$HOME/.gitconfig` or `$XDG_CONFIG_HOME/git/config`. For backwards
  * compatability, the XDG file shouldn't be used unless the use has
  * created it explicitly. With this function you'll open the correct
  * one to write to.