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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyen Thai Ngoc Duy committed
Oct 10, 2012 at 20:55 UTC
40701adbcbbc1e3e4485562a36343f4781e62be5
1 file changed
+5
Documentation/gitattributes.txt
+5
@@ -66,6 +66,11 @@ is from the path in question, the lower its precedence). Finally
66
global and system-wide files are considered (they have the lowest
67
precedence).
68
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
+
74
If you wish to affect only a single repository (i.e., to assign
75
attributes to files that are particular to
76
one user's workflow for that repository), then