-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Feature] support disable repository programing language Detection #10335
Comments
Any reason/use case on why? |
Related: #7953 |
@lafriks Because they have small memory and don't think this feature is necessary. but have many big repo. And this feature spend many memory. I also think this feature is just useful for public gitea instances or big enterprise gitea instances. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
No. That's not the same case. One is for UI language and this one is for repositories' programing languages detection. |
Should be per-repo. I think supporting the linguist gitattributes is a good idea which probably makes this an upstream issue. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
upstream issue: |
Copying my info from the other issue: linguist supports various gitattributes to affect the language stats, I think we should too.
Both have the effect that matching files will be excluded from language stats. There's more but I think these two are the most commonly used ones. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Sometimes it gets wrong language, |
You can use the |
@delvh I want to Specify or Disable the language type here (in Repositories list page) |
Ah, you mean the global one. |
@delvh I temporarily use sql to modify the database: -- change one language in a repo
update language_stat set language='Markdown' where id=THE_ID; //this seems not right way. it's Repositories's languages and ratio info |
I doubt we support all |
Are there any plans to support |
I'm not up to date where these linguist attributes are currently supported (e.g. gitea vs. go-enry dependency), but there might be a dependency on getting it in go-enry first: |
|
Automatically locked because of our CONTRIBUTING guidelines |
as title
The text was updated successfully, but these errors were encountered: