@ -79,7 +79,7 @@ Attributes for all users on a system should be placed in the
`$(prefix)/etc/gitattributes` file.
`$(prefix)/etc/gitattributes` file.
Sometimes you would need to override an setting of an attribute
Sometimes you would need to override an setting of an attribute
for a path to `unspecified` state. This can be done by listing
for a path to `Unspecified` state. This can be done by listing
the name of the attribute prefixed with an exclamation point `!`.
the name of the attribute prefixed with an exclamation point `!`.
@ -868,7 +868,7 @@ If this attribute is not set or has an invalid value, the value of the
(See linkgit:git-config[1]).
(See linkgit:git-config[1]).
USING ATTRIBUTE MACROS
USING MACRO ATTRIBUTES
----------------------
----------------------
You do not want any end-of-line conversions applied to, nor textual diffs
You do not want any end-of-line conversions applied to, nor textual diffs
@ -879,27 +879,27 @@ 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 define an attribute that, when set, also
macro attributes, you can define an attribute that, when set, also
sets or unsets a number of other attributes at the same time. The
sets or unsets a number of other attributes at the same time. The
system knows a built-in attribute macro, `binary`:
system knows a built-in macro attribute, `binary`:
------------
------------
*.jpg binary
*.jpg binary
------------
------------
Setting the "binary" attribute also unsets the "text" and "diff"
Setting the "binary" attribute also unsets the "text" and "diff"
attributes as above. Note that attribute macros can only be "Set",
attributes as above. Note that macro attributes can only be "Set",
though setting one might have the effect of setting or unsetting other
though setting one might have the effect of setting or unsetting other
attributes or even returning other attributes to the "Unspecified"
attributes or even returning other attributes to the "Unspecified"
state.
state.
DEFINING ATTRIBUTE MACROS
DEFINING MACRO ATTRIBUTES
-------------------------
-------------------------
Custom attribute macros can be defined only in the `.gitattributes` file
Custom macro attributes can be defined only in the `.gitattributes`
at the toplevel (i.e. not in any subdirectory). The built-in attribute
file at the toplevel (i.e. not in any subdirectory). The built-in
macro "binary" is equivalent to:
macro attribute "binary" is equivalent to:
------------
------------
[attr]binary -diff -text
[attr]binary -diff -text