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

Re: [PATCH v2] docs: note the type of core.attributesfile

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 18, 2025, 00:15 UTC
Message-ID
<xmqqldj0zlv1.fsf@gitster.g>
In-Reply-To
<20251217195917.25710-1-matthewhughes934@gmail.com>
Matthew Hughes <matthewhughes934@gmail.com> writes:
> This change is basically the same rewording as was done to
> 'core.excludesFile' in dca83abde2 (config: describe 'pathname' value
> type).

Indeed, when we look at Documentation/config.txt in the commit immediately before that one, the description for core.excludesFile and core.attributesFile starts quite similarly. The old commit dca83abd (config: describe 'pathname' value type, 2016-04-29) should have done this already back then when it touched core.excludesFile.

Will queue.  Thanks.
Show 22 quoted lines
> Signed-off-by: Matthew Hughes <matthewhughes934@gmail.com>
> ---
>  Documentation/config/core.adoc | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/config/core.adoc b/Documentation/config/core.adoc
> index 01202da7cd..9bc9de29d9 100644
> --- a/Documentation/config/core.adoc
> +++ b/Documentation/config/core.adoc
> @@ -492,10 +492,9 @@ core.askPass::
>  	command-line argument and write the password on its STDOUT.
>  
>  core.attributesFile::
> -	In addition to `.gitattributes` (per-directory) and
> -	`.git/info/attributes`, Git looks into this file for attributes
> -	(see linkgit:gitattributes[5]). Path expansions are made the same
> -	way as for `core.excludesFile`. Its default value is
> +	Specifies the pathname to the file that contains attributes (see
> +	linkgit:gitattributes[5]), in addition to `.gitattributes` (per-directory)
> +	and `.git/info/attributes`. Its default value is
>  	`$XDG_CONFIG_HOME/git/attributes`. If `$XDG_CONFIG_HOME` is either not
>  	set or empty, `$HOME/.config/git/attributes` is used instead.
Previous: Matthew Hughes
Message 4 of 4 in “docs: note the type of core.attributesfile”
  1. docs: note the type of core.attributesfileMatthew Hughes, Dec 17, 2025
  2. Matthew HughesDec 17, 2025
  3. docs: note the type of core.attributesfileMatthew Hughes, Dec 17, 2025
  4. Junio C HamanoDec 18, 2025

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.