forgejo-aneksajo/modules/git/tests/repos/language_stats_repo
forgejo-backport-action e837350319 [v11.0/forgejo] fix: use linguist-generated for language stats (#7694)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/7685

- Adds code comment to explain behavior of the `linguist-generated` gitattribute.
- Adjusts the code to ignore the file if `linguist-generated` is true.
- Resolves forgejo/forgejo#7677
- Adds unit testing.

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Bug fixes
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/7694): <!--number 7694 --><!--line 0 --><!--description Zml4OiB1c2UgYGxpbmd1aXN0LWdlbmVyYXRlZGAgZm9yIGxhbmd1YWdlIHN0YXRz-->fix: use `linguist-generated` for language stats<!--description-->
<!--end release-notes-assistant-->

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7694
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-04-28 06:52:28 +00:00
..
info Ignore Sync errors on pipes when doing CheckAttributeReader.CheckPath, fix the hang of git cat-file (#17096) 2021-09-20 20:46:51 +01:00
objects/pack [v11.0/forgejo] fix: use linguist-generated for language stats (#7694) 2025-04-28 06:52:28 +00:00
refs [v11.0/forgejo] fix: use linguist-generated for language stats (#7694) 2025-04-28 06:52:28 +00:00
COMMIT_EDITMSG Ignore Sync errors on pipes when doing CheckAttributeReader.CheckPath, fix the hang of git cat-file (#17096) 2021-09-20 20:46:51 +01:00
config [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
description Ignore Sync errors on pipes when doing CheckAttributeReader.CheckPath, fix the hang of git cat-file (#17096) 2021-09-20 20:46:51 +01:00
HEAD Ignore Sync errors on pipes when doing CheckAttributeReader.CheckPath, fix the hang of git cat-file (#17096) 2021-09-20 20:46:51 +01:00
packed-refs [v11.0/forgejo] fix: use linguist-generated for language stats (#7694) 2025-04-28 06:52:28 +00:00