Skip to content

.gitattributes linguist settings incorrectly formatted? #5719

Answered by lildude
quoid asked this question in Q&A
Discussion options

You must be logged in to vote
  • does my .gitattributes file look properly formatted? (it seems like certain html files are not being ignored)

It does now 😁. I see you've worked out that the - at the beginning negates the option. Your earlier versions of the file were wrong if you were intending on having the HTML files ignored.

what is the proper way to handle spaces in file paths?

* [this thread](https://github.com/github/linguist/discussions/5491) suggests using `[[:space:]]` or `\`

* [this issue](https://github.com/github/linguist/issues/5117) suggests using `?` or `*`

Both essentially work as [[:space:]] matches the specific space "character" whilst * and ? match any character, including spaces.

  • is a - nee…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quoid
Comment options

Answer selected by quoid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants