Skip to content

Commit

Permalink
Replace fluff added in github-linguist#4699 (github-linguist#4701)
Browse files Browse the repository at this point in the history
* Replace fluff added in github-linguist#4699

Partially reverts 1551710.

See: https://github.com/github/linguist/pull/4699/files#r341981107

* Quickly strip whitespace before @pchaigno spots it
  • Loading branch information
Alhadis authored Nov 4, 2019
1 parent 10c20c7 commit a91db8f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,8 @@ File and folder paths inside `.gitattributes` are calculated relative to the pos
```gitattributes
# Example of a `.gitattributes` file which reclassifies `.rb` files as Java:
*.rb linguist-language=Java
```

Be aware that `gitattribute` values cannot contain whitespace.
If a language's name contains spaces, replace them with hyphens instead:

```gitattributes
# These lines won't work:
*.glyphs linguist-language=OpenStep Property List
*.glyphs linguist-language=OpenStep\ Property\ List
*.glyphs linguist-language="OpenStep Property List"
# But this line will:
# Replace any whitespace in the language name with hyphens:
*.glyphs linguist-language=OpenStep-Property-List
```

Expand Down

0 comments on commit a91db8f

Please sign in to comment.