forgejo/modules/git
forgejo-backport-action 1ef2c321be [v12.0/forgejo] fix: correctly get stats for API commits (#8758)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8756

- Instead of generating a patch and parsing its contents, use a faster and simple way to get it via `--shortstat`.
- Resolves forgejo/forgejo#8725
- Regression of forgejo/forgejo#7682
- Adds unit test.
- Adds integration test.

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8758
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-08-02 13:46:34 +02:00
..
foreachref
internal
pipeline
pushoptions
tests/repos
url
batch.go
batch_reader.go
blame.go
blame_sha256_test.go
blame_test.go
blob.go blob: GetBlobContent: reduce allocations (#8223) 2025-06-19 18:36:12 +02:00
blob_test.go git/blob: add truncated tests 2025-06-20 20:43:10 +02:00
command.go
command_race_test.go
command_test.go
commit.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
commit_info.go
commit_info_test.go
commit_reader.go
commit_sha256_test.go
commit_test.go
diff.go
diff_test.go
error.go
git.go fix: make test suite run on older git version (#8188) 2025-06-14 19:50:58 +02:00
git_test.go chore: fix tests for old git versions (#8144) 2025-06-11 09:38:15 +02:00
grep.go fix: make test suite run on older git version (#8188) 2025-06-14 19:50:58 +02:00
grep_test.go fix: make test suite run on older git version (#8188) 2025-06-14 19:50:58 +02:00
hook.go
last_commit_cache.go
log_name_status.go
notes.go
notes_test.go
object_format.go
object_id.go
object_id_test.go
object_signature.go
parse.go
parse_test.go
README.md
ref.go
ref_test.go
remote.go
repo.go
repo_archive.go
repo_attribute.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
repo_attribute_test.go fix: make test suite run on older git version (#8188) 2025-06-14 19:50:58 +02:00
repo_base.go
repo_base_test.go
repo_blame.go
repo_blob_test.go
repo_branch.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
repo_branch_test.go
repo_commit.go
repo_commit_test.go
repo_commitgraph.go
repo_compare.go [v12.0/forgejo] fix: correctly get stats for API commits (#8758) 2025-08-02 13:46:34 +02:00
repo_compare_test.go [v12.0/forgejo] fix: correctly get stats for API commits (#8758) 2025-08-02 13:46:34 +02:00
repo_gpg.go
repo_hook.go
repo_index.go
repo_language_stats.go
repo_language_stats_test.go
repo_object.go
repo_ref.go
repo_ref_test.go
repo_stats.go
repo_stats_test.go
repo_tag.go
repo_tag_test.go
repo_test.go
repo_tree.go
signature.go
signature_test.go
submodule.go
submodule_test.go
tag.go
tag_test.go
tree.go
tree_blob.go
tree_entry.go
tree_entry_mode.go
tree_test.go
utils.go
utils_test.go

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.