0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-03 10:44:38 +01:00
gitea/services/pull
Brecht Van Lommel b88e5fc72d
Fix slow patch checking with commits that add or remove many files (#31548)
Running git update-index for every individual file is slow, so add and
remove everything with a single git command.

When such a big commit lands in the default branch, it could cause PR
creation and patch checking for all open PRs to be slow, or time out
entirely. For example, a commit that removes 1383 files was measured to
take more than 60 seconds and timed out. With this change checking took
about a second.

This is related to #27967, though this will not help with commits that
change many lines in few files.
2024-07-04 18:57:11 +00:00
..
check_test.go
check.go
comment.go
commit_status_test.go
commit_status.go
edits.go
lfs.go
main_test.go
merge_ff_only.go
merge_merge.go
merge_prepare.go
merge_rebase.go
merge_squash.go
merge_test.go
merge.go Fix duplicate sub-path for avatars (#31365) 2024-06-15 11:43:57 +08:00
patch_unmerged.go
patch.go Fix slow patch checking with commits that add or remove many files (#31548) 2024-07-04 18:57:11 +00:00
pull_test.go
pull.go
review_test.go
review.go
temp_repo.go
update_rebase.go
update.go