From b266818aa52a71d81279eb8eee76fc0873ddc119 Mon Sep 17 00:00:00 2001 From: Todd Walton Date: Fri, 9 Aug 2019 13:37:37 -0400 Subject: doc: use XDG_CONFIG_HOME in comments XDG_CONFIG_DIR does not actually exist. PR #1347 --- ignore/src/gitignore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs index b8db42ba..01bcda3b 100644 --- a/ignore/src/gitignore.rs +++ b/ignore/src/gitignore.rs @@ -537,7 +537,7 @@ impl GitignoreBuilder { /// /// Note that the file path returned may not exist. fn gitconfig_excludes_path() -> Option { - // git supports $HOME/.gitconfig and $XDG_CONFIG_DIR/git/config. Notably, + // git supports $HOME/.gitconfig and $XDG_CONFIG_HOME/git/config. Notably, // both can be active at the same time, where $HOME/.gitconfig takes // precedent. So if $HOME/.gitconfig defines a `core.excludesFile`, then // we're done. @@ -568,7 +568,7 @@ fn gitconfig_home_contents() -> Option> { } /// Returns the file contents of git's global config file, if one exists, in -/// the user's XDG_CONFIG_DIR directory. +/// the user's XDG_CONFIG_HOME directory. fn gitconfig_xdg_contents() -> Option> { let path = env::var_os("XDG_CONFIG_HOME") .and_then(|x| if x.is_empty() { None } else { Some(PathBuf::from(x)) }) -- cgit v1.2.3