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

Re: [PATCH 1/1] doc: Mention info/attributes in gitrepository-layout

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 22, 2017, 15:54 UTC
Message-ID
<xmqqmv3es407.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20171122085814.8563-1-prohaska@zib.de>
Steffen Prohaska <prohaska@zib.de> writes:
Show 17 quoted lines
> Signed-off-by: Steffen Prohaska <prohaska@zib.de>
> ---
>  Documentation/gitrepository-layout.txt | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/gitrepository-layout.txt b/Documentation/gitrepository-layout.txt
> index adf9554ad2..c60bcad44a 100644
> --- a/Documentation/gitrepository-layout.txt
> +++ b/Documentation/gitrepository-layout.txt
> @@ -208,6 +208,10 @@ info/exclude::
>  	'git clean' look at it but the core Git commands do not look
>  	at it.  See also: linkgit:gitignore[5].
>  
> +info/attributes::
> +	Defines which attributes to assign to a path, similar to per-directory
> +	`.gitattributes` files.   See also: linkgit:gitattributes[5].
> +

Makes sense, but don't we also want to mention a bit more than "similar to"? The entries in this file is treated as higher priority than the in-tree .gitattributes file, which allows us to use it to locally override the choice made by the project.

>  info/sparse-checkout::
>  	This file stores sparse checkout patterns.
>  	See also: linkgit:git-read-tree[1].
Previous: Steffen Prohaska
Message 2 of 2 in “doc: Mention info/attributes in gitrepository-layout”
  1. 1/1 doc: Mention info/attributes in gitrepository-layoutSteffen Prohaska, Nov 22, 2017
  2. Junio C HamanoNov 22, 2017

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.