gitea/modules/git
Lunny Xiao 4344a64107
Allow custom default merge message with .gitea/default_merge_message/<merge_style>_TEMPLATE.md ()
* Allow custom default merge message with .gitea/MERGE_MESSAGE_<merge_style>_TEMPLATE.md

* Some improvements

* Follow some advices

* Fix bug

* Fix bug

* Fix lint

* Fix close comment

* Fix test

* Fix and docs

* Improve codes

* Update docs and remove unnecessary variables

* return error for GetDefaultMergeMessage

* Fix test

* improve code

* ignore unknow unit type

* return error for GetDefaultMergeMessage

* Update services/pull/merge.go

* Some improvements

* Follow some advices

* Fix bug

* Fix lint

* Improve codes

* Update docs and remove unnecessary variables

* return error for GetDefaultMergeMessage

* improve code

* Handle deleted HeadRepo in GetDefaultMergeMessage

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Fix test

* Fix test

Co-authored-by: zeripath <art27@cantab.net>
..
foreachref Improve sync performance for pull-mirrors ()
pipeline Remove legacy `+build:` constraint ()
tests/repos Auto merge pull requests when all checks succeeded via API ()
README.md move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
batch_reader.go Prevent dangling cat-file calls (goroutine alternative) ()
blame.go Propagate context and ensure git commands run in request context ()
blame_test.go refactor: move from io/ioutil to io and os package ()
blob.go Read expected buffer size ()
blob_gogit.go Remove legacy `+build:` constraint ()
blob_nogogit.go Remove legacy `+build:` constraint ()
blob_test.go Make git.OpenRepository accept Context ()
command.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
command_race_test.go Remove legacy `+build:` constraint ()
command_test.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
commit.go Allow custom default merge message with .gitea/default_merge_message/<merge_style>_TEMPLATE.md ()
commit_convert_gogit.go Remove legacy `+build:` constraint ()
commit_info.go Use native git variants by default with go-git variants as build tag ()
commit_info_gogit.go Remove legacy `+build:` constraint ()
commit_info_nogogit.go Remove legacy `+build:` constraint ()
commit_info_test.go Make git.OpenRepository accept Context ()
commit_reader.go Tagger can be empty, as can Commit and Author - tolerate this ()
commit_test.go Use for a repo action one database transaction ()
diff.go Pass gitRepo down to GetRawDiff, since its used for main repo and wiki ()
diff_test.go Prevent off-by-one error on comments on newly appended lines ()
error.go Fix 500 Error with branch and tag sharing the same name ()
git.go Upgrade required git version to 2.0 ()
git_test.go Use gitea logging module for git module ()
hook.go format with gofumpt ()
last_commit_cache.go Defer Last Commit Info ()
last_commit_cache_gogit.go Remove legacy `+build:` constraint ()
last_commit_cache_nogogit.go Remove legacy `+build:` constraint ()
lfs.go Unexport git.GlobalCommandArgs ()
log_name_status.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
notes.go Use native git variants by default with go-git variants as build tag ()
notes_gogit.go Remove legacy `+build:` constraint ()
notes_nogogit.go Remove legacy `+build:` constraint ()
notes_test.go Make git.OpenRepository accept Context ()
parse_gogit.go Remove legacy `+build:` constraint ()
parse_gogit_test.go Remove legacy `+build:` constraint ()
parse_nogogit.go Remove legacy `+build:` constraint ()
parse_nogogit_test.go Remove legacy `+build:` constraint ()
ref.go Refactor various strings ()
remote.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_archive.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_attribute.go Prevent intermittent race in attribute reader close ()
repo_attribute_test.go format with gofumpt ()
repo_base.go Make git.OpenRepository accept Context ()
repo_base_gogit.go Remove legacy `+build:` constraint ()
repo_base_nogogit.go Remove legacy `+build:` constraint ()
repo_blame.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_blob.go Use native git variants by default with go-git variants as build tag ()
repo_blob_gogit.go Remove legacy `+build:` constraint ()
repo_blob_nogogit.go Remove legacy `+build:` constraint ()
repo_blob_test.go Make git.OpenRepository accept Context ()
repo_branch.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_branch_gogit.go Auto merge pull requests when all checks succeeded via API ()
repo_branch_nogogit.go Auto merge pull requests when all checks succeeded via API ()
repo_branch_test.go Auto merge pull requests when all checks succeeded via API ()
repo_commit.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_commit_gogit.go Remove legacy `+build:` constraint ()
repo_commit_nogogit.go Remove legacy `+build:` constraint ()
repo_commit_test.go Make git.OpenRepository accept Context ()
repo_commitgraph.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_commitgraph_gogit.go Remove legacy `+build:` constraint ()
repo_compare.go Allow to mark files in a PR as viewed ()
repo_compare_test.go Make git.OpenRepository accept Context ()
repo_gpg.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_hook.go move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
repo_index.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_language_stats.go format with gofumpt ()
repo_language_stats_gogit.go Remove legacy `+build:` constraint ()
repo_language_stats_nogogit.go Remove legacy `+build:` constraint ()
repo_language_stats_test.go Remove legacy `+build:` constraint ()
repo_object.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_ref.go Use native git variants by default with go-git variants as build tag ()
repo_ref_gogit.go Remove legacy `+build:` constraint ()
repo_ref_nogogit.go Remove legacy `+build:` constraint ()
repo_ref_test.go Make git.OpenRepository accept Context ()
repo_stats.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_stats_test.go Make git.OpenRepository accept Context ()
repo_tag.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_tag_gogit.go Remove legacy `+build:` constraint ()
repo_tag_nogogit.go Remove legacy `+build:` constraint ()
repo_tag_test.go Improve sync performance for pull-mirrors ()
repo_test.go Make git.OpenRepository accept Context ()
repo_tree.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_tree_gogit.go Remove legacy `+build:` constraint ()
repo_tree_nogogit.go Remove legacy `+build:` constraint ()
sha1.go Use native git variants by default with go-git variants as build tag ()
sha1_gogit.go Remove legacy `+build:` constraint ()
sha1_nogogit.go Remove legacy `+build:` constraint ()
signature.go Use native git variants by default with go-git variants as build tag ()
signature_gogit.go Remove legacy `+build:` constraint ()
signature_nogogit.go Remove legacy `+build:` constraint ()
submodule.go Fix some lints ()
submodule_test.go format with gofumpt ()
tag.go format with gofumpt ()
tag_test.go Fix NPE on try to get tag reference via API ()
tree.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
tree_blob.go Use native git variants by default with go-git variants as build tag ()
tree_blob_gogit.go Remove legacy `+build:` constraint ()
tree_blob_nogogit.go Remove legacy `+build:` constraint ()
tree_entry.go On open repository open common cat file batch and batch-check ()
tree_entry_gogit.go Remove legacy `+build:` constraint ()
tree_entry_mode.go format with gofumpt ()
tree_entry_nogogit.go Remove legacy `+build:` constraint ()
tree_entry_test.go Remove legacy `+build:` constraint ()
tree_gogit.go Remove legacy `+build:` constraint ()
tree_nogogit.go Remove legacy `+build:` constraint ()
utils.go Simplify parameter types ()
utils_test.go Fix ref links in issue overviews for tags ()

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.