Skip to content

Support gitattributes for language stats #11908

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

Closed
silverwind opened this issue Jun 16, 2020 · 1 comment
Closed

Support gitattributes for language stats #11908

silverwind opened this issue Jun 16, 2020 · 1 comment
Labels
type/enhancement An improvement of existing functionality

Comments

@silverwind
Copy link
Member

silverwind commented Jun 16, 2020

linguist supports various gitattributes to affect the language stats, I think we should too.

  • linguist-generated or maybe just generated for generated code
  • linguist-vendored or maybe just vendored for vendored code
  • linguist-language or maybe just language to override detected language

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.

@silverwind silverwind changed the title Hide generated and diff-unset files in diff Support linguist attributes for language stats Jul 26, 2020
@silverwind silverwind changed the title Support linguist attributes for language stats Support gitattributes for language stats Jul 26, 2020
@lunny lunny added the type/enhancement An improvement of existing functionality label Jul 27, 2020
@silverwind
Copy link
Member Author

Actually this is now a duplicate of #10335, closing.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants