forgejo/modules/git
Gusted 648a75e687 fix: correctly get stats for API commits (#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.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8756
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-08-02 13:06:04 +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_test.go
command.go
command_race_test.go
command_test.go
commit.go
commit_info.go
commit_info_test.go
commit_reader.go
commit_sha256_test.go
commit_test.go
diff.go
diff_compare.go
diff_compare_test.go
diff_test.go
error.go
git.go
git_test.go
grep.go
grep_test.go
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
repo_attribute_test.go
repo_base.go
repo_base_test.go
repo_blame.go
repo_blame_test.go
repo_blob_test.go
repo_branch.go
repo_branch_test.go
repo_commit.go
repo_commit_test.go
repo_commitgraph.go
repo_compare.go fix: correctly get stats for API commits (#8756) 2025-08-02 13:06:04 +02:00
repo_compare_test.go fix: correctly get stats for API commits (#8756) 2025-08-02 13:06:04 +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.