Giteabot 6486c8b7b3
Fix slow patch checking with commits that add or remove many files (#31548) (#31560)
Backport #31548 by @brechtvl

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.

Co-authored-by: Brecht Van Lommel <brecht@blender.org>
2024-07-05 11:24:01 +02:00
..
2024-02-25 13:32:13 +00:00
2024-06-17 07:41:47 +00: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
2024-06-29 15:54:15 +00:00
2023-11-03 15:21:05 +00:00
2024-01-12 21:50:38 +00:00