summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Walton <tdwalton@gmail.com>2019-08-09 13:37:37 -0400
committerAndrew Gallant <jamslam@gmail.com>2019-08-09 13:37:37 -0400
commitb266818aa52a71d81279eb8eee76fc0873ddc119 (patch)
tree425ae12e11a34c8130d740e3682a07092aec5f19
parent81415ae52df4356f33099ec5ccfd7793cf4e10de (diff)
doc: use XDG_CONFIG_HOME in comments
XDG_CONFIG_DIR does not actually exist. PR #1347
-rw-r--r--ignore/src/gitignore.rs4
1 files 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<PathBuf> {
- // 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<Vec<u8>> {
}
/// 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<Vec<u8>> {
let path = env::var_os("XDG_CONFIG_HOME")
.and_then(|x| if x.is_empty() { None } else { Some(PathBuf::from(x)) })