Skip to content

Commit 40701ad

Browse files
pcloudsgitster
authored andcommitted
attr: a note about the order of .gitattributes lookup
This is the documentation part of 1a9d7e9 (attr.c: read .gitattributes from index as well. - 2007-08-14) 06f33c1 (Read attributes from the index that is being checked out - 2009-03-13) Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7bfffdc commit 40701ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/gitattributes.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ is from the path in question, the lower its precedence). Finally
6666
global and system-wide files are considered (they have the lowest
6767
precedence).
6868

69+
When the `.gitattributes` file is missing from the work tree, the
70+
path in the index is used as a fall-back. During checkout process,
71+
`.gitattributes` in the index is used and then the file in the
72+
working tree is used as a fall-back.
73+
6974
If you wish to affect only a single repository (i.e., to assign
7075
attributes to files that are particular to
7176
one user's workflow for that repository), then

0 commit comments

Comments
 (0)