Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
attr: a note about the order of .gitattributes lookup
author
Nguyen Thai Ngoc Duy
<pclouds@gmail.com>
Wed, 10 Oct 2012 13:55:52 +0000
(20:55 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 10 Oct 2012 18:09:20 +0000
(11:09 -0700)
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>
Documentation/gitattributes.txt
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7bfffdc
)
diff --git
a/Documentation/gitattributes.txt
b/Documentation/gitattributes.txt
index e16f3e175bd8915d139961c649be209b0afc535f..aff760ef7beefe81563f703c608dead93ce0704f 100644
(file)
--- 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