1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-22 07:34:26 +00:00
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-06-29 22:50:03 +00:00
2024-02-25 13:32:13 +00:00
2024-06-17 06:45:12 +00:00
2024-06-17 21:22:39 +02:00
2024-04-03 02:16:46 +00:00
2023-02-11 08:39:50 +08:00
2023-12-25 20:13:18 +08:00
2024-04-22 23:55:43 +00:00
2024-02-25 13:32:13 +00:00
2022-12-30 23:31:00 +08:00
2023-11-03 15:21:05 +00:00
2024-06-11 18:47:45 +00:00
2024-06-19 06:32:45 +08:00
2024-06-19 06:32:45 +08:00
2024-01-12 21:50:38 +00:00