gitea/services
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
..
2024-04-30 14:34:40 +02:00
2024-06-19 06:32:45 +08:00
2024-06-19 06:32:45 +08:00
2024-06-05 09:22:38 +08:00
2024-04-07 19:17:06 +08:00
2024-06-19 06:32:45 +08:00
2023-12-25 21:25:29 +01:00
2024-05-20 00:56:45 +00:00
2024-05-19 12:58:39 +08:00
2024-06-11 18:47:45 +00:00
2024-06-19 06:32:45 +08:00