Skip to contentSkip to conversation

doc: Mention info/attributes in gitrepository-layout

PATCH In review Steffen Prohaska 2 participants 2 messages Nov 22, 2017 Documentation

lore
Share & tools
lore
#0 lore raw

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

---
 Documentation/gitrepository-layout.txt | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/gitrepository-layout.txt +4 -0
index adf9554ad2..c60bcad44a 100644
@@ -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].
+
 info/sparse-checkout::
 	This file stores sparse checkout patterns.
 	See also: linkgit:git-read-tree[1].
Signature · 1 line
2.15.0.5.g43a9009988
#1 lore raw
Quoted 10 lines · Steffen Prohaska
---
 Documentation/gitrepository-layout.txt | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/gitrepository-layout.txt +0 -0
index adf9554ad2..c60bcad44a 100644

Documentation/gitrepository-layout.txt info/exclude:: · line 214

Quoted 7 lines
Documentation/gitrepository-layout.txt +4 -0
@@ -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.

Quoted 3 lines
Documentation/gitrepository-layout.txt +0 -0
 info/sparse-checkout::
 	This file stores sparse checkout patterns.
 	See also: linkgit:git-read-tree[1].