You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,7 @@ Using [linguist/samples](https://github.com/github/linguist/tree/master/samples)
140
140
* all files for SQL language fall to the classifier because we don't parse this [disambiguator expresion](https://github.com/github/linguist/blob/master/lib/linguist/heuristics.rb#L433) for `*.sql` files right. This expression doesn't comply with the pattern for the rest of [heuristics.rb](https://github.com/github/linguist/blob/master/lib/linguist/heuristics.rb) file.
141
141
142
142
143
+
143
144
Benchmarks
144
145
------------
145
146
@@ -172,7 +173,8 @@ to get time averages for main detection function and strategies for the whole sa
172
173
if you want see measures by sample file
173
174
174
175
175
-
.gitAttributes
176
+
177
+
.gitattributes
176
178
--------------
177
179
178
180
Like in linguist you can override the strategies via `.gitattributes` file.
@@ -183,7 +185,7 @@ Add a `.gitattributes` file to the directory and use the same matchers that you
183
185
Use the `linguist-vendored` attribute to vendor or un-vendor paths.
184
186
185
187
```
186
-
$cat .gitattributes
188
+
$cat .gitattributes
187
189
this-is-a-vendor-directory/ linguist-vendored
188
190
this-is-not/ linguist-vendored=false
189
191
```
@@ -196,10 +198,11 @@ Documentation works the same way as vendored code but using `linguist-documentat
196
198
If you want some files to be classified according to certain language use `linguist-language=[language]`.
197
199
198
200
```
199
-
$cat .gitattributes
201
+
$cat .gitattributes
200
202
.*\.go linguist-language=MyFavouriteLanguage
201
203
```
202
-
Note, that the regular expression that match the file name should be one compatible with go, see: [Golang regexp](https://golang.org/pkg/regexp/).
204
+
205
+
Note that the regular expression that matches the file name should be compatible with go, see: [Golang regexp](https://golang.org/pkg/regexp/).
0 commit comments