Skip to contentSkip to conversation

gitattributes documentation: link to gitignore for glob format

PATCH In review Nguyễn Thái Ngọc Duy 2 participants 3 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitattributes documentation: link to gitignore for glob format

---
 Documentation/gitattributes.txt |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
Documentation/gitattributes.txt +3 -1
index 9a75257..45c11df 100644
@@ -21,7 +21,9 @@ Each line in `gitattributes` file is of form:
 	glob	attr1 attr2 ...
 
 That is, a glob pattern followed by an attributes list,
-separated by whitespaces.  When the glob pattern matches the
+separated by whitespaces. Glob pattern format is as same as
+one used by `gitignore` files. Please refer to linkgit:gitignore[5]
+for more information. When the glob pattern matches the
 path in question, the attributes listed on the line are given to
 the path.
 
Signature · 1 line
1.6.0.2.427.g8dbf1
#1 lore raw
Quoted 11 lines · Nguyễn Thái Ngọc Duy

---
Documentation/gitattributes.txt | 4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)
Documentation/ renamed from Documentation/gitattributes.txt +0 -0

gitattributes.txt
index 9a75257..45c11df 100644

Documentation/gitattributes.txt Each line in `gitattributes` file is of form: · line 24

Quoted 5 lines
Documentation/gitattributes.txt +1 -1
@@ -21,7 +21,9 @@ Each line in `gitattributes` file is of form:
 	glob	attr1 attr2 ...
 
 That is, a glob pattern followed by an attributes list,
-separated by whitespaces.  When the glob pattern matches the
+separated by whitespaces. Glob pattern format is as same as

It's "whitespace", not "whitespaces". And the sentence you added has two errors:

"as same as" should be "the same as"

Documentation/gitattributes.txt Each line in `gitattributes` file is of form: · line 26

Quoted 2 lines
Documentation/gitattributes.txt +2 -0
+one used by `gitignore` files. Please refer to linkgit:gitignore[5]
+for more information. When the glob pattern matches the

And: "as one" should be "as the one".

And as a style point, you probably should start the sentence with "The glob pattern" rather than "Glob pattern".

Did you actually proofread this before sending it?

Cheers,
Wincent

#2 lore raw

PATCH 1/1 gitattributes documentation: link to gitignore for glob format

---

Quoted 1 line · Wincent Colaiuta

Did you actually proofread this before sending it?

I did, but obviously I should have been more serious on English classes.

 Documentation/gitattributes.txt |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
Documentation/gitattributes.txt +3 -1
index 9a75257..708a9b5 100644
@@ -21,7 +21,9 @@ Each line in `gitattributes` file is of form:
 	glob	attr1 attr2 ...
 
 That is, a glob pattern followed by an attributes list,
-separated by whitespaces.  When the glob pattern matches the
+separated by whitespace. The glob pattern format is the same as
+the one used by `gitignore` files. Please refer to linkgit:gitignore[5]
+for more information. When the glob pattern matches the
 path in question, the attributes listed on the line are given to
 the path.
 
Signature · 1 line
1.6.0.2.427.g8dbf1