dir.c: fix typos in core.excludesfile comment

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>
This commit is contained in:
Todd Zullinger 2018-06-27 00:46:52 -04:00 коммит произвёл Junio C Hamano
Родитель 45e851cb44
Коммит 51d1863168
1 изменённых файлов: 1 добавлений и 1 удалений

2
dir.c
Просмотреть файл

@ -2475,7 +2475,7 @@ void setup_standard_excludes(struct dir_struct *dir)
{ {
dir->exclude_per_dir = ".gitignore"; 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) if (!excludes_file)
excludes_file = xdg_config_home("ignore"); excludes_file = xdg_config_home("ignore");
if (excludes_file && !access_or_warn(excludes_file, R_OK, 0)) if (excludes_file && !access_or_warn(excludes_file, R_OK, 0))