TheFox0x7 cc1fdc84ca
Use test context in tests and new loop system in benchmarks ()
Replace all contexts in tests with go1.24 t.Context()

---------

Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
..
foreachref Use refname:strip-2 instead of refname:short when syncing tags ()
internal Refactor git command package to improve security and maintainability ()
pipeline Inherit submodules from template repository content ()
tests/repos Inherit submodules from template repository content ()
url Use test context in tests and new loop system in benchmarks ()
README.md move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
attribute.go Refactor git attributes ()
batch.go Refactor the usage of batch catfile ()
batch_reader.go Inherit submodules from template repository content ()
blame.go Refactor pprof labels and process desc ()
blame_sha256_test.go Use test context in tests and new loop system in benchmarks ()
blame_test.go Use test context in tests and new loop system in benchmarks ()
blob.go Fix profile render when the README.md size is larger than 1024 bytes ()
blob_gogit.go Abstract hash function usage ()
blob_nogogit.go Refactor the usage of batch catfile ()
blob_test.go Use test context in tests and new loop system in benchmarks ()
command.go Support performance trace ()
command_race_test.go Use test context in tests and new loop system in benchmarks ()
command_test.go Use test context in tests and new loop system in benchmarks ()
commit.go Refactor RefName ()
commit_convert_gogit.go Refactor commit signature parser ()
commit_info.go add submodule diff links ()
commit_info_gogit.go add submodule diff links ()
commit_info_nogogit.go add submodule diff links ()
commit_info_test.go Use test context in tests and new loop system in benchmarks ()
commit_reader.go Enable more `revive` linter rules ()
commit_sha256_test.go Refactor older tests to use testify ()
commit_submodule.go add submodule diff links ()
commit_submodule_file.go Link to tree views of submodules if possible ()
commit_submodule_file_test.go Use test context in tests and new loop system in benchmarks ()
commit_test.go Use test context in tests and new loop system in benchmarks ()
config.go Fix submodule parsing ()
config_submodule.go Fix submodule parsing ()
config_submodule_test.go Fix submodule parsing ()
config_test.go Fix submodule parsing ()
diff.go Fix parentCommit invalid memory address or nil pointer dereference. ()
diff_test.go Implement FSFE REUSE for golang files ()
error.go Fix git error handling ()
fsck.go Fix submodule parsing ()
git.go Fix submodule parsing ()
git_test.go Fix submodule parsing ()
grep.go Improve grep search ()
grep_test.go Use test context in tests and new loop system in benchmarks ()
hook.go Implement FSFE REUSE for golang files ()
last_commit_cache.go Refactor cache and disable go-chi cache ()
last_commit_cache_gogit.go Abstract hash function usage ()
last_commit_cache_nogogit.go Implement FSFE REUSE for golang files ()
log_name_status.go bump to go 1.23 ()
notes.go Implement FSFE REUSE for golang files ()
notes_gogit.go Abstract hash function usage ()
notes_nogogit.go Implement FSFE REUSE for golang files ()
notes_test.go Use test context in tests and new loop system in benchmarks ()
object_format.go Make sure git version&feature are always prepared ()
object_id.go Make sure git version&feature are always prepared ()
object_id_gogit.go Add support for sha256 repositories ()
object_id_test.go Fix incorrect object id hash function ()
parse.go Add go wrapper around git diff-tree --raw -r -M ()
parse_gogit.go Resolve lint for unused parameter and unnecessary type arguments ()
parse_gogit_test.go Resolve lint for unused parameter and unnecessary type arguments ()
parse_nogogit.go Inherit submodules from template repository content ()
parse_nogogit_test.go Enable tenv and testifylint rules ()
ref.go Refactor RefName ()
ref_test.go Refactor RefName ()
remote.go Support the new exit code for `git remote` subcommands for git version >=2.30.0 ()
repo.go Refactor pprof labels and process desc ()
repo_archive.go Refactor context RefName and RepoAssignment ()
repo_archive_test.go Refactor context RefName and RepoAssignment ()
repo_attribute.go Fix git error handling ()
repo_attribute_test.go Refactor git attributes ()
repo_base_gogit.go Fix submodule parsing ()
repo_base_nogogit.go Fix submodule parsing ()
repo_blame.go Remove `git.FileBlame` ()
repo_blob.go Improve ObjectFormat interface ()
repo_blob_gogit.go Abstract hash function usage ()
repo_blob_nogogit.go Abstract hash function usage ()
repo_blob_test.go Improve ObjectFormat interface ()
repo_branch.go Move get/set default branch from git package to gitrepo package to hide repopath ()
repo_branch_gogit.go Fix typo in documentation of GetBranchNames() ()
repo_branch_nogogit.go Refactor the usage of batch catfile ()
repo_branch_test.go Use test context in tests and new loop system in benchmarks ()
repo_commit.go Fix `GetCommitBranchStart` bug ()
repo_commit_gogit.go Fix gogit `GetRefCommitID` ()
repo_commit_nogogit.go Refactor the usage of batch catfile ()
repo_commit_test.go Fix commit range paging ()
repo_commitgraph.go Make sure git version&feature are always prepared ()
repo_commitgraph_gogit.go Update go dependencies and fix go-git ()
repo_compare.go Refactor getpatch/getdiff functions and remove unnecessary fallback ()
repo_compare_test.go Refactor getpatch/getdiff functions and remove unnecessary fallback ()
repo_gpg.go Abstract hash function usage ()
repo_hook.go Implement FSFE REUSE for golang files ()
repo_index.go Fix clean tmp dir ()
repo_language_stats.go Refactor git attributes ()
repo_language_stats_gogit.go Refactor git attributes ()
repo_language_stats_nogogit.go Refactor the usage of batch catfile ()
repo_language_stats_test.go Refactor older tests to use testify ()
repo_object.go Improve ObjectFormat interface ()
repo_ref.go Make API "compare" accept commit IDs ()
repo_ref_gogit.go Abstract hash function usage ()
repo_ref_nogogit.go Improve ObjectFormat interface ()
repo_ref_test.go Fix commit retrieval by tag ()
repo_stats.go Fix some pending problems ()
repo_stats_test.go Fix commit retrieval by tag ()
repo_tag.go Refactor commit signature parser ()
repo_tag_gogit.go Fix submodule parsing ()
repo_tag_nogogit.go Fix submodule parsing ()
repo_tag_test.go Refactor older tests to use testify ()
repo_test.go Use test context in tests and new loop system in benchmarks ()
repo_tree.go Improve ObjectFormat interface ()
repo_tree_gogit.go Add `TAGS` to `TEST_TAGS` and fix bugs found with gogit ()
repo_tree_nogogit.go Refactor the usage of batch catfile ()
signature.go Refactor parseSignatureFromCommitLine ()
signature_gogit.go Refactor parseSignatureFromCommitLine ()
signature_nogogit.go Refactor parseSignatureFromCommitLine ()
signature_test.go Refactor parseSignatureFromCommitLine ()
submodule.go Inherit submodules from template repository content ()
submodule_test.go Use test context in tests and new loop system in benchmarks ()
tag.go Refactor commit signature parser ()
tag_test.go Refactor commit signature parser ()
tree.go Inherit submodules from template repository content ()
tree_blob.go Implement FSFE REUSE for golang files ()
tree_blob_gogit.go Abstract hash function usage ()
tree_blob_nogogit.go Inherit submodules from template repository content ()
tree_entry.go Remember to attach the parent tree when converting TreeEntry() -> Tree() ()
tree_entry_gogit.go Abstract hash function usage ()
tree_entry_mode.go Add go wrapper around git diff-tree --raw -r -M ()
tree_entry_nogogit.go Inherit submodules from template repository content ()
tree_entry_test.go Implement FSFE REUSE for golang files ()
tree_gogit.go Abstract hash function usage ()
tree_nogogit.go Refactor the usage of batch catfile ()
tree_test.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache ()
utils.go Fix submodule parsing ()
utils_test.go Refactor sha1 and time-limited code ()

README.md

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.