@@ -79,7 +79,7 @@ Attributes for all users on a system should be placed in the
79
79
`$(prefix)/etc/gitattributes` file.
80
80
81
81
Sometimes you would need to override an setting of an attribute
82
- for a path to `unspecified ` state. This can be done by listing
82
+ for a path to `Unspecified ` state. This can be done by listing
83
83
the name of the attribute prefixed with an exclamation point `!`.
84
84
85
85
@@ -868,7 +868,7 @@ If this attribute is not set or has an invalid value, the value of the
868
868
(See linkgit:git-config[1]).
869
869
870
870
871
- USING ATTRIBUTE MACROS
871
+ USING MACRO ATTRIBUTES
872
872
----------------------
873
873
874
874
You do not want any end-of-line conversions applied to, nor textual diffs
@@ -879,24 +879,27 @@ produced for, any binary file you track. You would need to specify e.g.
879
879
------------
880
880
881
881
but that may become cumbersome, when you have many attributes. Using
882
- attribute macros, you can specify groups of attributes set or unset at
883
- the same time. The system knows a built-in attribute macro, `binary`:
882
+ macro attributes, you can define an attribute that, when set, also
883
+ sets or unsets a number of other attributes at the same time. The
884
+ system knows a built-in macro attribute, `binary`:
884
885
885
886
------------
886
887
*.jpg binary
887
888
------------
888
889
889
- which is equivalent to the above. Note that the attribute macros can only
890
- be "Set" (see the above example that sets "binary" macro as if it were an
891
- ordinary attribute --- setting it in turn unsets "text" and "diff").
890
+ Setting the "binary" attribute also unsets the "text" and "diff"
891
+ attributes as above. Note that macro attributes can only be "Set",
892
+ though setting one might have the effect of setting or unsetting other
893
+ attributes or even returning other attributes to the "Unspecified"
894
+ state.
892
895
893
896
894
- DEFINING ATTRIBUTE MACROS
897
+ DEFINING MACRO ATTRIBUTES
895
898
-------------------------
896
899
897
- Custom attribute macros can be defined only in the `.gitattributes` file
898
- at the toplevel (i.e. not in any subdirectory). The built-in attribute
899
- macro "binary" is equivalent to:
900
+ Custom macro attributes can be defined only in the `.gitattributes`
901
+ file at the toplevel (i.e. not in any subdirectory). The built-in
902
+ macro attribute "binary" is equivalent to:
900
903
901
904
------------
902
905
[attr]binary -diff -text
0 commit comments