Skip to content

Commit 8d47dc7

Browse files
committed
Sync with maint
* maint: attr: a note about the order of .gitattributes lookup
2 parents d5e7c0c + 40701ad commit 8d47dc7

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)