summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorNguyen Thai Ngoc Duy <pclouds@gmail.com>2012-10-10 13:55:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-10-10 18:09:20 (GMT)
commit40701adbcbbc1e3e4485562a36343f4781e62be5 (patch)
tree09e5c4b3af7b9595861cb54a46d1aa2183ff9746 /Documentation
parent7bfffdc8a0039ebb1af36b62634697638f3b1ea5 (diff)
downloadgit-40701adbcbbc1e3e4485562a36343f4781e62be5.zip
git-40701adbcbbc1e3e4485562a36343f4781e62be5.tar.gz
git-40701adbcbbc1e3e4485562a36343f4781e62be5.tar.bz2
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/gitattributes.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt
index e16f3e1..aff760e 100644
--- a/Documentation/gitattributes.txt
+++ b/Documentation/gitattributes.txt
@@ -66,6 +66,11 @@ is from the path in question, the lower its precedence). Finally
global and system-wide files are considered (they have the lowest
precedence).
+When the `.gitattributes` file is missing from the work tree, the
+path in the index is used as a fall-back. During checkout process,
+`.gitattributes` in the index is used and then the file in the
+working tree is used as a fall-back.
+
If you wish to affect only a single repository (i.e., to assign
attributes to files that are particular to
one user's workflow for that repository), then