gitea/modules/git
Lunny Xiao e84e5db6de
Lazy load object format with command line and don't do it in OpenRepository ()
Most time, when invoking `git.OpenRepository`, `objectFormat` will not
be used, so it's a waste to invoke commandline to get the object format.
This PR make it a lazy operation, only invoke that when necessary.
..
foreachref Use refname:strip-2 instead of refname:short when syncing tags ()
internal Refactor git command package to improve security and maintainability ()
pipeline Discard unread data of `git cat-file` ()
tests/repos Add support for sha256 repositories ()
url Implement FSFE REUSE for golang files ()
README.md move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
attribute.go Refactor git attributes ()
batch_reader.go Discard unread data of `git cat-file` ()
blame.go Add `io.Closer` guidelines ()
blame_sha256_test.go Lazy load object format with command line and don't do it in OpenRepository ()
blame_test.go Lazy load object format with command line and don't do it in OpenRepository ()
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 Do not double close reader ()
blob_test.go Implement FSFE REUSE for golang files ()
command.go Add a check for when the command is canceled by the program on Window… ()
command_race_test.go Implement FSFE REUSE for golang files ()
command_test.go Improve git log for debugging ()
commit.go remove repetitive words ()
commit_convert_gogit.go Abstract hash function usage ()
commit_info.go Implement FSFE REUSE for golang files ()
commit_info_gogit.go Abstract hash function usage ()
commit_info_nogogit.go Discard unread data of `git cat-file` ()
commit_info_test.go Implement FSFE REUSE for golang files ()
commit_reader.go Add support for sha256 repositories ()
commit_sha256_test.go Lazy load object format with command line and don't do it in OpenRepository ()
commit_test.go Improve ObjectFormat interface ()
diff.go Implement FSFE REUSE for golang files ()
diff_test.go Implement FSFE REUSE for golang files ()
error.go Add merge style `fast-forward-only` ()
git.go Refactor modules/git global variables ()
git_test.go Refactor git version functions and check compatibility ()
hook.go Implement FSFE REUSE for golang files ()
last_commit_cache.go Use `crypto/sha256` ()
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 use go 1.22 ()
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 Implement FSFE REUSE for golang files ()
object_format.go Add support for sha256 repositories ()
object_id.go Add support for sha256 repositories ()
object_id_gogit.go Add support for sha256 repositories ()
object_id_test.go Adjust object format interface ()
parse_gogit.go Improve ObjectFormat interface ()
parse_gogit_test.go Improve ObjectFormat interface ()
parse_nogogit.go Improve ObjectFormat interface ()
parse_nogogit_test.go Improve ObjectFormat interface ()
ref.go Adjust object format interface ()
ref_test.go Use the type RefName for all the needed places and fix pull mirror sync bugs ()
remote.go Implement FSFE REUSE for golang files ()
repo.go Refactor modules/git global variables ()
repo_archive.go Fix archive creating LFS hooks and breaking pull requests ()
repo_attribute.go Refactor git attributes ()
repo_attribute_test.go Refactor git attributes ()
repo_base.go Simplify how git repositories are opened ()
repo_base_gogit.go Make wiki default branch name changable ()
repo_base_nogogit.go Lazy load object format with command line and don't do it in OpenRepository ()
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 Simplify how git repositories are opened ()
repo_branch_nogogit.go Simplify how git repositories are opened ()
repo_branch_test.go Implement FSFE REUSE for golang files ()
repo_commit.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_commit_gogit.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_commit_nogogit.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_commit_test.go Use more specific test methods ()
repo_commitgraph.go Implement FSFE REUSE for golang files ()
repo_commitgraph_gogit.go Update go dependencies and fix go-git ()
repo_compare.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_compare_test.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_gpg.go Abstract hash function usage ()
repo_hook.go Implement FSFE REUSE for golang files ()
repo_index.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_language_stats.go Refactor git attributes ()
repo_language_stats_gogit.go Refactor git attributes ()
repo_language_stats_nogogit.go Refactor git attributes ()
repo_language_stats_test.go Merge different languages for language stats ()
repo_object.go Improve ObjectFormat interface ()
repo_ref.go Show branches and tags that contain a commit ()
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 Refactor git command package to improve security and maintainability ()
repo_stats_test.go Fix commit retrieval by tag ()
repo_tag.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_tag_gogit.go Improve ObjectFormat interface ()
repo_tag_nogogit.go Discard unread data of `git cat-file` ()
repo_tag_test.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_test.go Faster git.GetDivergingCommits ()
repo_tree.go Improve ObjectFormat interface ()
repo_tree_gogit.go Lazy load object format with command line and don't do it in OpenRepository ()
repo_tree_nogogit.go Lazy load object format with command line and don't do it in OpenRepository ()
signature.go Refactor parseSignatureFromCommitLine ()
signature_gogit.go Refactor parseSignatureFromCommitLine ()
signature_nogogit.go Refactor parseSignatureFromCommitLine ()
signature_test.go Refactor parseSignatureFromCommitLine ()
submodule.go Upgrade to golangci-lint@v1.55.0 ()
submodule_test.go Implement FSFE REUSE for golang files ()
tag.go Refactor parseSignatureFromCommitLine ()
tag_test.go Adjust object format interface ()
tree.go Abstract hash function usage ()
tree_blob.go Implement FSFE REUSE for golang files ()
tree_blob_gogit.go Abstract hash function usage ()
tree_blob_nogogit.go Implement FSFE REUSE for golang files ()
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 Implement FSFE REUSE for golang files ()
tree_entry_nogogit.go Abstract hash function usage ()
tree_entry_test.go Implement FSFE REUSE for golang files ()
tree_gogit.go Abstract hash function usage ()
tree_nogogit.go Lazy load object format with command line and don't do it in OpenRepository ()
tree_test.go Discard unread data of `git cat-file` ()
utils.go Replace `interface{}` with `any` ()

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.