-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitattributes seems not to be used #4050
Comments
Try pushing a minor change to one of those license files. GitHub caches each repository's language breakdown, which means changes to |
Yes I understand that, but I'm trying to do this locally, not to see the changes on GitHub. |
Does |
No 😂 Still detected as Roff! |
Two things:
|
A single asterisk before
|
So, the important points:
Would a PR adding these two points in the related README section be accepted? |
Also note that a pattern like This is unlike a # .gitignore
path/to/folder # Works
path/to/folder/* # Works
# .gitattributes
path/to/folder # Doesn't work
path/to/folder/* # Works |
👍 for me. The second point is not specific to Linguist tough. Maybe point to the appropriate documentation and change one of the examples to show a more complex case (e.g., |
Indeed it's not specific to linguist, a simple reminder + doc link + example would be good enough. Let's see that in a PR :) |
Preliminary Steps
Please confirm you have...
Problem Description
So it says Linguist takes into account any override. I tried locally to override
*.1
files to be detected as "vendored" or "documentation", using.gitattributes
(in order to get rid of them in the stats), but it does not work.I tried many different combinations:
*.1 linguist-vendored
,*.1 linguist-vendored=true
,*.1 linguist-documentation
,licenses/* linguist-vendored
, but my code is always reported as being 86.12% Roff.URL of the affected repository:
https://github.com/Pawamoy/cookiecutter-cookiecutter
Last modified on:
Not relevant. It's not even working locally. I have installed linguist version 6.0.1 with
gem install github-linguist
through rbenv, ruby version 2.4.0.Expected language:
It would be better if the licenses text were detected as text, but this is not the issue here, since I am responsible for having named the files with a
.1
extension (as inEuropean_Union_Public_License_1.1
). I don't mind that.Detected language:
Roff, which is fine.
The text was updated successfully, but these errors were encountered: