-
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
Does linguist load global/system gitattributes? #4283
Comments
Linguist runs on GitHub.com (and GitLab.com) so it cannot know the content of files on your local system; if the |
@pchaigno In this case it is a self-hosted GitLab instance. So linguist has access to all the repositories on the server. I'd like linguist (in this GitLab) to detect some other files that are not the programming type, like According to git docs, if no |
We use |
Hmmm, I'm pretty sure GitLab doesn't take |
I followed the whole path from a I just tested Should I fill a issue over there? |
GitLabber here, at the time of writing we don't read anything outside of the repository for linguist. Just to confirm, like previously stated by @pcantrell in #4283 (comment) @raphaelyancey My understanding is that it would be filed against either Rugged, the Ruby wrapper around LibGit2, or Libgit2 itself. |
Closing in favor of libgit2/rugged#765. |
Does this mean that if I want to test changes to my |
No. If you have Linguist installed locally, you can commit your changes to the repo and run Linguist against the repo. If you don't have Linguist installed locally, then yes, you will need to commit your changes, push, and then wait for GitHub to run Linguist against your repo. PS. this really should have been a new discussion rather than a comment on an issue that was closed over 4 years ago 😉 |
I'm trying to make some languages detectable widly for every repository on a server.
I created a
/etc/gitattributes
(system) and a/home/git/.gitattributes
(user-global) but neither of them seems to be taken into account, only a.gitattribute
in the repository root.Does linguist load global/system gitattributes?
Edit: the user-wide config is
~/.config/git/attributes
and not/home/git/.gitattributes
(but doesn't work either)The text was updated successfully, but these errors were encountered: