Giteabot
e536d18fe5
Refactor the usage of batch catfile ( #31754 ) ( #31889 )
...
Backport #31754 by @lunny
When opening a repository, it will call `ensureValidRepository` and also
`CatFileBatch`. But sometimes these will not be used until repository
closed. So it's a waste of CPU to invoke 3 times git command for every
open repository.
This PR removed all of these from `OpenRepository` but only kept
checking whether the folder exists. When a batch is necessary, the
necessary functions will be invoked.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2024-08-21 01:55:14 +08:00
..
2024-01-16 08:13:07 +01:00
2023-02-04 10:30:43 +08:00
2024-08-21 01:55:14 +08:00
2024-01-19 17:05:02 +01:00
2022-11-27 18:20:29 +00:00
2024-02-24 18:46:49 +00:00
2024-08-21 01:55:14 +08:00
2024-08-21 01:55:14 +08:00
2024-08-07 15:58:09 +00:00
2024-03-12 04:21:27 +00:00
2024-05-07 02:07:33 +00:00
2023-12-13 21:02:00 +00:00
2024-08-21 01:55:14 +08:00
2022-11-27 18:20:29 +00:00
2023-06-13 09:02:25 +00:00
2022-11-27 18:20:29 +00:00
2023-04-13 19:17:27 -04:00
2024-03-24 17:05:00 +01:00
2024-04-01 20:23:17 +00:00
2023-12-13 21:02:00 +00:00
2024-08-21 01:55:14 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2024-04-22 11:48:42 +00:00
2024-03-12 04:21:27 +00:00
2024-08-08 03:08:30 +00:00
2024-05-07 02:07:33 +00:00
2022-11-27 18:20:29 +00:00
2024-08-08 03:08:30 +00:00
2024-02-12 23:37:23 +01:00
2024-02-14 17:18:30 +00:00
2024-05-07 02:07:33 +00:00
2024-05-03 17:59:33 +08:00
2024-05-03 17:59:33 +08:00
2022-11-27 18:20:29 +00:00
2023-12-13 21:02:00 +00:00
2022-11-27 18:20:29 +00:00
2024-04-13 08:38:44 +00:00
2024-02-14 18:19:57 +00:00
2023-12-13 21:02:00 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2024-05-07 02:07:33 +00:00
2024-01-19 17:05:02 +01:00
2024-04-26 09:49:48 +00:00
2024-05-07 02:07:33 +00:00
2023-12-19 07:20:47 +00:00
2023-12-19 07:20:47 +00:00
2023-12-19 07:20:47 +00:00
2023-12-19 07:20:47 +00:00
2023-05-26 01:04:48 +00:00
2024-04-27 08:03:49 +00:00
2024-05-07 02:07:33 +00:00
2024-01-19 05:49:18 +00:00
2024-02-24 18:46:49 +00:00
2024-02-24 18:46:49 +00:00
2024-05-07 02:07:33 +00:00
2024-08-21 01:55:14 +08:00
2023-07-12 19:07:29 +02:00
2023-12-13 21:02:00 +00:00
2023-12-13 21:02:00 +00:00
2023-12-19 07:20:47 +00:00
2023-12-19 07:20:47 +00:00
2024-08-09 15:43:23 +08:00
2024-08-21 01:55:14 +08:00
2024-08-09 15:43:23 +08:00
2024-03-08 15:30:10 +08:00
2024-03-12 04:21:27 +00:00
2024-08-21 01:55:14 +08:00
2024-08-08 03:08:30 +00:00
2024-08-08 03:08:30 +00:00
2024-01-23 05:40:00 +00:00
2024-05-07 02:07:33 +00:00
2024-03-12 04:21:27 +00:00
2024-03-12 04:21:27 +00:00
2023-12-13 21:02:00 +00:00
2022-11-27 18:20:29 +00:00
2024-07-05 11:24:01 +02:00
2024-02-24 18:46:49 +00:00
2024-08-21 01:55:14 +08:00
2023-05-24 19:37:36 +00:00
2024-02-24 18:46:49 +00:00
2023-12-19 07:20:47 +00:00
2023-12-13 21:02:00 +00:00
2023-12-19 07:20:47 +00:00
2023-03-02 13:32:21 +08:00
2023-07-27 12:47:41 +02:00
2023-03-02 13:32:21 +08:00
2024-03-22 19:17:30 +08:00
2023-12-19 07:20:47 +00:00
2024-08-21 01:55:14 +08:00
2024-04-01 20:23:17 +00:00
2024-04-01 20:23:17 +00:00
2023-05-04 05:08:41 +00:00
2024-08-07 15:58:09 +00:00
2024-08-21 01:55:14 +08:00
2023-12-19 07:20:47 +00:00
2024-05-07 02:07:33 +00:00
2024-02-09 11:02:53 +08:00
2024-02-09 11:02:53 +08:00
2024-02-09 11:02:53 +08:00
2024-02-09 11:02:53 +08:00
2022-11-27 18:20:29 +00:00
2024-04-22 11:48:42 +00:00
2024-04-01 20:23:17 +00:00
2024-04-01 20:23:17 +00:00
2023-12-13 21:02:00 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-12-13 21:02:00 +00:00
2022-11-27 18:20:29 +00:00
2024-08-21 01:55:14 +08:00
2022-11-27 18:20:29 +00:00
2023-02-14 21:23:04 +00:00
2023-12-13 21:02:00 +00:00
2024-08-21 01:55:14 +08:00
2024-02-22 03:48:19 +00:00
2023-12-13 21:02:00 +00:00
2024-05-21 00:58:21 +08:00
2024-05-21 00:58:21 +08:00