gitea/modules/git
Lunny Xiao 7a09bc904a
Avoid creating unnecessary temporary cat file sub process (#33942)
Extract from #33934 

In the same goroutine, we should reuse the exist cat file sub process
which exist in `git.Repository` to avoid creating a unnecessary
temporary subprocess.

This PR reuse the exist cate file writer and reader in
`getCommitFromBatchReader`.
It also move `prepareLatestCommitInfo` before creating dataRc which will
hold the writer so other git operation will create a temporary cat file
subprocess.
2025-04-04 16:19:19 -07:00
..
foreachref
internal
pipeline Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
tests/repos
url Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
README.md
attribute.go
batch.go Decouple Batch from git.Repository to simplify usage without requiring the creation of a Repository struct. (#34001) 2025-03-27 17:35:48 +00:00
batch_reader.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
blame.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
blame_sha256_test.go
blame_test.go
blob.go Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
blob_gogit.go
blob_nogogit.go
blob_test.go
command.go Fix the issue with error message logging for the `check-attr` command on Windows OS. (#34035) 2025-03-27 17:25:31 +08:00
command_race_test.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
command_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
commit.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
commit_convert_gogit.go
commit_info.go
commit_info_gogit.go
commit_info_nogogit.go Fix material icon & diff highlight (#33844) 2025-03-10 22:34:48 +08:00
commit_info_test.go
commit_reader.go
commit_sha256_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
commit_submodule.go
commit_submodule_file.go
commit_submodule_file_test.go
commit_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
config.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
config_submodule.go
config_submodule_test.go
config_test.go
diff.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
diff_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
error.go
fsck.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
git.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
git_test.go
grep.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
grep_test.go
hook.go Move duplicated functions (#33977) 2025-03-25 14:40:31 +00:00
last_commit_cache.go
last_commit_cache_gogit.go
last_commit_cache_nogogit.go
log_name_status.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
notes.go
notes_gogit.go
notes_nogogit.go
notes_test.go
object_format.go
object_id.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
object_id_gogit.go
object_id_test.go
parse.go
parse_gogit.go
parse_gogit_test.go
parse_nogogit.go Add file tree to file view page (#32721) 2025-03-15 16:26:49 +08:00
parse_nogogit_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
ref.go
ref_test.go
remote.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_archive.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_archive_test.go
repo_attribute.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
repo_attribute_test.go Fix some UI bugs and clean up unused tests (#34088) 2025-04-01 07:02:30 +00:00
repo_base_gogit.go Move duplicated functions (#33977) 2025-03-25 14:40:31 +00:00
repo_base_nogogit.go Decouple Batch from git.Repository to simplify usage without requiring the creation of a Repository struct. (#34001) 2025-03-27 17:35:48 +00:00
repo_blame.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_blob.go
repo_blob_gogit.go
repo_blob_nogogit.go
repo_blob_test.go
repo_branch.go Refactor Branch struct in package modules/git (#33980) 2025-04-02 17:31:32 +00:00
repo_branch_gogit.go
repo_branch_nogogit.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_branch_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repo_commit.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_commit_gogit.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_commit_nogogit.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
repo_commit_test.go
repo_commitgraph.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_commitgraph_gogit.go Use filepath.Join instead of path.Join for file system file operations (#33978) 2025-03-24 14:50:28 -07:00
repo_compare.go Decouple diff stats query from actual diffing (#33810) 2025-03-08 17:36:08 +08:00
repo_compare_test.go
repo_gpg.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_hook.go
repo_index.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_language_stats.go
repo_language_stats_gogit.go
repo_language_stats_nogogit.go
repo_language_stats_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repo_object.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_ref.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
repo_ref_gogit.go
repo_ref_nogogit.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_ref_test.go
repo_stats.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_stats_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repo_tag.go Move git references checking to gitrepo packages to reduce expose of repository path (#33891) 2025-03-15 19:48:59 -07:00
repo_tag_gogit.go
repo_tag_nogogit.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
repo_tag_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repo_test.go
repo_tree.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_tree_gogit.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
repo_tree_nogogit.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
signature.go
signature_gogit.go
signature_nogogit.go
signature_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
submodule.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
submodule_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
tag.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
tag_test.go
tree.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
tree_blob.go
tree_blob_gogit.go Add file tree to file view page (#32721) 2025-03-15 16:26:49 +08:00
tree_blob_nogogit.go
tree_entry.go
tree_entry_gogit.go
tree_entry_mode.go
tree_entry_nogogit.go
tree_entry_test.go
tree_gogit.go
tree_nogogit.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
tree_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
utils.go Move duplicated functions (#33977) 2025-03-25 14:40:31 +00:00
utils_test.go

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.