Skip to content

Commit 25da1ac

Browse files
committed
config: fix incorrect filename in documentation comment
The underlying code uses GIT_CONFIG_FILENAME_GLOBAL, which is .gitconfig.
1 parent 7283daa commit 25da1ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/git2/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ GIT_EXTERN(int) git_config_open_level(
262262
* Open the global/XDG configuration file according to git's rules
263263
*
264264
* Git allows you to store your global configuration at
265-
* `$HOME/.config` or `$XDG_CONFIG_HOME/git/config`. For backwards
265+
* `$HOME/.gitconfig` or `$XDG_CONFIG_HOME/git/config`. For backwards
266266
* compatability, the XDG file shouldn't be used unless the use has
267267
* created it explicitly. With this function you'll open the correct
268268
* one to write to.

0 commit comments

Comments
 (0)