git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] dir.c: fix typos in core.excludesfile comment

From
Todd Zullinger <tmz@pobox.com>
Date
Jun 27, 2018, 04:46 UTC
Message-ID
<20180627044652.12080-2-tmz@pobox.com>
In-Reply-To
<20180627044652.12080-1-tmz@pobox.com>

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>
---
I noticed the typo in core.excludesfile and $XDG_CONFIG_HOME while I was
verifing the previous change to clarify the documentation matched the code.
Fixing these minor issues in the comments will hopefully make it easier for
others to find the right places in the code in the future.
 dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dir.c b/dir.c
index fe9bf58e4c..363a4837ae 100644
--- a/dir.c
+++ b/dir.c
@@ -2497,7 +2497,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))
-- 
2.18.0
Previous: Todd ZullingerNext: Junio C Hamano
Message 2 of 4 in “gitignore.txt: clarify default core.excludesfile path”
  1. 1/2 gitignore.txt: clarify default core.excludesfile pathTodd Zullinger, Jun 27, 2018
  2. 2/2 dir.c: fix typos in core.excludesfile commentTodd Zullinger, Jun 27, 2018
  3. Junio C HamanoJun 27, 2018
  4. Todd ZullingerJun 27, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.