mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-02-07 16:28:12 +02:00
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> (cherry picked from commit6d4e02fe5f) (cherry picked from commitee1ead8189) (cherry picked from commit2dbec730e8)
Git Module
This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.