Skip to content

Commit

Permalink
attr.c: ".gitattribute" -> ".gitattributes" (comments)
Browse files Browse the repository at this point in the history
Correct misspelled ".gitattribute" in comments only, so no functional
change.

Signed-off-by: Robert P. J. Day <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
rpjday authored and gitster committed Mar 7, 2019
1 parent 0d0ac38 commit bb101aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,14 @@ static struct match_attr *parse_attr_line(const char *line, const char *src,
* Like info/exclude and .gitignore, the attribute information can
* come from many places.
*
* (1) .gitattribute file of the same directory;
* (2) .gitattribute file of the parent directory if (1) does not have
* (1) .gitattributes file of the same directory;
* (2) .gitattributes file of the parent directory if (1) does not have
* any match; this goes recursively upwards, just like .gitignore.
* (3) $GIT_DIR/info/attributes, which overrides both of the above.
*
* In the same file, later entries override the earlier match, so in the
* global list, we would have entries from info/attributes the earliest
* (reading the file from top to bottom), .gitattribute of the root
* (reading the file from top to bottom), .gitattributes of the root
* directory (again, reading the file from top to bottom) down to the
* current directory, and then scan the list backwards to find the first match.
* This is exactly the same as what is_excluded() does in dir.c to deal with
Expand Down Expand Up @@ -900,7 +900,7 @@ static void prepare_attr_stack(const struct index_state *istate,
* set of attribute definitions, followed by the contents
* of $(prefix)/etc/gitattributes and a file specified by
* core.attributesfile. Then, contents from
* .gitattribute files from directories closer to the
* .gitattributes files from directories closer to the
* root to the ones in deeper directories are pushed
* to the stack. Finally, at the very top of the stack
* we always keep the contents of $GIT_DIR/info/attributes.
Expand Down

0 comments on commit bb101aa

Please sign in to comment.