bench-forgejo/models
typeless 937b4b5aa1 Speed up conflict checking in pull request creation (#276)
* Speed up conflict checking in pull request creation

In order to check conflicts of a PR, we set up a working tree by
cloning the base branch, which is quite time-consuming when the repository is huge.
Instead, this PR uses `git read-tree` and `git apply --check --cached` to check conflicts.

For #258

* Use $GIT_INDEX_FILE instead of --index-output to avoid lockfile problem

The lockfile gets renamed to the final destination after the operation
finishes. But it must be located in the same filesystem, which prevents
us from using /tmp.

* Temporary file names should not prefixed with '-'
2016-12-29 22:59:52 +08:00
..
migrations Replace Gogs with Gitea (#520) 2016-12-28 16:33:21 +08:00
access.go Optimization for user.GetRepositoryAccesses to reduce db query times (#495) 2016-12-28 09:34:35 +08:00
action.go fix tag webhook 404 error (#420) 2016-12-22 22:57:48 +08:00
admin.go Lint models/admin.go 2016-11-24 23:42:07 +01:00
error.go [API] Pull Requests (#248) 2016-12-02 12:10:39 +01:00
git_diff.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
git_diff_test.go More MixedCase consts 2016-11-07 17:24:59 +01:00
graph.go commithgraph / timeline (#428) 2016-12-29 07:44:32 +08:00
graph_test.go commithgraph / timeline (#428) 2016-12-29 07:44:32 +08:00
issue.go Added sorting to the labels & milestones page (#199) 2016-12-24 22:41:09 +08:00
issue_comment.go UpdateIssueUsersByMentions was calling database write operations while (#443) 2016-12-22 17:00:39 +08:00
issue_label.go Added sorting to the labels & milestones page (#199) 2016-12-24 22:41:09 +08:00
issue_mail.go UpdateIssueUsersByMentions was calling database write operations while (#443) 2016-12-22 17:00:39 +08:00
lfs.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
login_source.go Correction LDAP validation (#342) 2016-12-12 08:46:51 +08:00
mail.go Implement sendmail (#355) 2016-12-25 14:55:22 +01:00
models.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
models_sqlite.go go vet 2014-04-13 03:14:43 -04:00
models_test.go #3442 add test suites 2016-08-12 02:56:50 -07:00
models_tidb.go Remove go version from build tags (#133) 2016-11-10 08:43:49 -02:00
org.go slight optimization for GetUserRepositories (#498) 2016-12-29 02:53:33 -06:00
org_team.go rename all uID -> userID on models/org_team.go 2016-11-28 16:33:08 +08:00
pull.go Speed up conflict checking in pull request creation (#276) 2016-12-29 22:59:52 +08:00
release.go fixed vulnerabilities on deleting release (#399) 2016-12-16 19:42:39 +08:00
repo.go Tab on user profile to show starred repos (#519) 2016-12-29 22:58:24 +08:00
repo_branch.go Lint models/repo_branch.go 2016-11-26 11:20:37 +01:00
repo_collaboration.go API Endpoints for collaborators (#375) 2016-12-26 15:37:01 +08:00
repo_editor.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
repo_mirror.go Fix string format verbs (#3637) 2016-12-22 08:18:41 +01:00
repo_test.go fixed test build error 2016-11-25 16:02:10 +08:00
ssh_key.go Replace Gogs with Gitea (#520) 2016-12-28 16:33:21 +08:00
ssh_key_test.go Update import paths from github.com/go-gitea to code.gitea.io (#135) 2016-11-10 17:24:48 +01:00
star.go Tab on user profile to show starred repos (#519) 2016-12-29 22:58:24 +08:00
token.go fixed vulnerabilities (#392) 2016-12-15 16:49:06 +08:00
update.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
user.go fix 500 when delete orgnization and resolved #486 2016-12-27 12:00:12 +01:00
user_mail.go Fix random string generator (#384) 2016-12-20 13:32:02 +01:00
webhook.go Fix string format verbs (#3637) 2016-12-22 08:18:41 +01:00
webhook_slack.go Fix breakage from vendor-update 2016-11-29 11:50:22 +01:00
wiki.go In the wiki title replace tab with a space (#371) 2016-12-11 11:01:26 +08:00