Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitattributes: Clarify discussion of attribute macros
author
Michael Haggerty
<mhagger@alum.mit.edu>
Wed, 3 Aug 2011 13:41:29 +0000
(15:41 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 3 Aug 2011 17:32:02 +0000
(10:32 -0700)
In particular, make it clear that attribute macros are themselves
recorded as attributes in addition to setting other attributes.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitattributes.txt
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3503b8d
)
diff --git
a/Documentation/gitattributes.txt
b/Documentation/gitattributes.txt
index 412c55b549354471a56a4e56ca5533277c83bc54..ccb3f3f14ef0a6e4029c32c5971d7652017617df 100644
(file)
--- a/
Documentation/gitattributes.txt
+++ b/
Documentation/gitattributes.txt
@@
-879,16
+879,19
@@
produced for, any binary file you track. You would need to specify e.g.
------------
but that may become cumbersome, when you have many attributes. Using
------------
but that may become cumbersome, when you have many attributes. Using
-attribute macros, you can specify groups of attributes set or unset at
-the same time. The system knows a built-in attribute macro, `binary`:
+attribute macros, you can define an attribute that, when set, also
+sets or unsets a number of other attributes at the same time. The
+system knows a built-in attribute macro, `binary`:
------------
*.jpg binary
------------
------------
*.jpg binary
------------
-which is equivalent to the above. Note that the attribute macros can only
-be "Set" (see the above example that sets "binary" macro as if it were an
-ordinary attribute --- setting it in turn unsets "text" and "diff").
+Setting the "binary" attribute also unsets the "text" and "diff"
+attributes as above. Note that attribute macros can only be "Set",
+though setting one might have the effect of setting or unsetting other
+attributes or even returning other attributes to the "Unspecified"
+state.
DEFINING ATTRIBUTE MACROS
DEFINING ATTRIBUTE MACROS