Skip to content

Commit 0922570

Browse files
mhaggergitster
authored andcommitted
gitattributes: Reword "attribute macro" to "macro attribute"
The new wording makes it clearer that such a beast is an attribute in addition to being a macro (as opposed to being only a macro that is used for attributes). Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 98e8406 commit 0922570

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Documentation/gitattributes.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Attributes for all users on a system should be placed in the
7979
`$(prefix)/etc/gitattributes` file.
8080

8181
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
8383
the name of the attribute prefixed with an exclamation point `!`.
8484

8585

@@ -868,7 +868,7 @@ If this attribute is not set or has an invalid value, the value of the
868868
(See linkgit:git-config[1]).
869869

870870

871-
USING ATTRIBUTE MACROS
871+
USING MACRO ATTRIBUTES
872872
----------------------
873873

874874
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.
879879
------------
880880

881881
but that may become cumbersome, when you have many attributes. Using
882-
attribute macros, you can define an attribute that, when set, also
882+
macro attributes, you can define an attribute that, when set, also
883883
sets or unsets a number of other attributes at the same time. The
884-
system knows a built-in attribute macro, `binary`:
884+
system knows a built-in macro attribute, `binary`:
885885

886886
------------
887887
*.jpg binary
888888
------------
889889

890890
Setting the "binary" attribute also unsets the "text" and "diff"
891-
attributes as above. Note that attribute macros can only be "Set",
891+
attributes as above. Note that macro attributes can only be "Set",
892892
though setting one might have the effect of setting or unsetting other
893893
attributes or even returning other attributes to the "Unspecified"
894894
state.
895895

896896

897-
DEFINING ATTRIBUTE MACROS
897+
DEFINING MACRO ATTRIBUTES
898898
-------------------------
899899

900-
Custom attribute macros can be defined only in the `.gitattributes` file
901-
at the toplevel (i.e. not in any subdirectory). The built-in attribute
902-
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:
903903

904904
------------
905905
[attr]binary -diff -text

0 commit comments

Comments
 (0)