]> granicus.if.org Git - git/commitdiff
dir.c: fix typos in core.excludesfile comment
authorTodd Zullinger <tmz@pobox.com>
Wed, 27 Jun 2018 04:46:52 +0000 (00:46 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jun 2018 19:17:17 +0000 (12:17 -0700)
Make it easier to find references to core.excludesfile and the default
$XDG_CONFIG_HOME/git/ignore path.

Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c

diff --git a/dir.c b/dir.c
index 7c4b45e30e0ac87527ff0ef3fd8c90670a1e2064..3f46acf5e5be939aebd65c645586061be522ae4e 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -2475,7 +2475,7 @@ void setup_standard_excludes(struct dir_struct *dir)
 {
        dir->exclude_per_dir = ".gitignore";
 
-       /* core.excludefile defaulting to $XDG_HOME/git/ignore */
+       /* core.excludesfile defaulting to $XDG_CONFIG_HOME/git/ignore */
        if (!excludes_file)
                excludes_file = xdg_config_home("ignore");
        if (excludes_file && !access_or_warn(excludes_file, R_OK, 0))