0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-05 19:21:31 -05:00
Commit graph

1 commit

Author SHA1 Message Date
Gergely Nagy
6d4e02fe5f
Improved Linguist compatibility
Recognise the `linguist-documentation` and `linguist-detectable`
attributes in `.gitattributes` files, and use them in
`GetLanguageStats()` to make a decision whether to include a particular
file in the stats or not.

This allows one more control over which files in their repositories
contribute toward the language statistics, so that for a project that is
mostly documentation, the language stats can reflect that.

Fixes #1672.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-01-15 22:02:53 +01:00