Taylor Blau
f2d3bf178a
builtin/repack.c: extract redundant pack cleanup for existing packs
...
To remove redundant packs at the end of a repacking operation, Git uses
its `remove_redundant_pack()` function in a loop over the set of
pre-existing, non-kept packs.
In a later commit, we will split this list into two, one for
pre-existing cruft pack(s), and another for non-cruft pack(s). Prepare
for this by factoring out the routine to loop over and delete redundant
packs into its own function.
Instead of calling `remove_redundant_pack()` directly, we now will call
`remove_redundant_existing_packs()`, which itself dispatches a call to
`remove_redundant_packs_1()`. Note that the geometric repacking code
will still call `remove_redundant_pack()` directly, but see the previous
commit for more details.
Having `remove_redundant_packs_1()` exist as a separate function may
seem like overkill in this patch. However, a later patch will call
`remove_redundant_packs_1()` once over two separate lists, so this
refactoring sets us up for that.
Signed-off-by: Taylor Blau <me@ttaylorr.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2023-09-13 12:32:47 -07:00
..
2023-08-21 15:33:24 -07:00
2023-08-21 15:33:23 -07:00
2020-07-30 19:18:06 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-07-05 11:41:59 -07:00
2023-07-17 11:30:42 -07:00
2023-08-24 09:32:33 -07:00
2023-07-05 11:41:59 -07:00
2023-08-07 11:57:18 -07:00
2023-07-17 11:30:42 -07:00
2023-08-11 09:44:52 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:54 -07:00
2023-06-21 13:39:53 -07:00
2023-07-05 11:42:31 -07:00
2023-06-21 13:39:53 -07:00
2023-07-25 12:05:23 -07:00
2023-07-06 11:54:48 -07:00
2023-07-27 15:26:37 -07:00
2023-07-06 11:54:48 -07:00
2023-07-06 11:54:48 -07:00
2023-06-21 13:39:54 -07:00
2023-07-08 11:23:07 -07:00
2023-07-17 11:30:42 -07:00
2023-07-13 17:24:00 -07:00
2023-07-05 11:42:31 -07:00
2023-07-05 11:41:59 -07:00
2023-07-06 11:54:46 -07:00
2023-03-28 14:11:24 -07:00
2023-08-21 15:33:24 -07:00
2023-04-11 08:52:10 -07:00
2023-08-21 15:33:24 -07:00
2023-08-21 15:33:24 -07:00
2023-08-21 15:33:24 -07:00
2023-08-21 15:33:24 -07:00
2023-07-17 11:30:42 -07:00
2023-06-21 13:39:54 -07:00
2023-07-05 11:41:59 -07:00
2023-07-05 11:42:31 -07:00
2023-07-27 15:26:37 -07:00
2023-07-05 11:41:59 -07:00
2023-07-21 13:47:26 -07:00
2023-06-21 13:39:53 -07:00
2023-08-19 21:17:32 -07:00
2023-07-17 11:30:42 -07:00
2023-08-24 09:32:34 -07:00
2023-07-05 11:41:59 -07:00
2023-08-02 09:37:23 -07:00
2023-06-21 13:39:54 -07:00
2023-07-06 11:54:48 -07:00
2023-06-21 13:39:53 -07:00
2023-07-25 12:05:24 -07:00
2023-07-05 11:41:59 -07:00
2023-06-21 13:39:53 -07:00
2023-09-01 11:26:28 -07:00
2023-07-06 11:54:45 -07:00
2023-06-21 13:39:54 -07:00
2023-07-18 09:38:24 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-07-13 17:24:00 -07:00
2023-07-17 11:30:42 -07:00
2023-07-13 17:24:00 -07:00
2023-07-05 11:42:31 -07:00
2023-07-06 11:54:48 -07:00
2023-08-29 13:51:43 -07:00
2023-07-05 11:42:31 -07:00
2023-07-06 11:54:47 -07:00
2023-07-28 09:45:22 -07:00
2023-06-21 13:39:54 -07:00
2023-05-12 14:54:14 -07:00
2023-07-06 11:54:48 -07:00
2023-03-21 10:56:51 -07:00
2023-06-29 16:43:21 -07:00
2023-07-06 11:54:48 -07:00
2023-07-27 15:26:37 -07:00
2023-06-21 13:39:53 -07:00
2023-07-06 11:54:48 -07:00
2023-07-17 11:30:42 -07:00
2023-08-30 13:50:41 -07:00
2023-07-06 11:54:48 -07:00
2023-03-28 14:11:24 -07:00
2023-03-28 14:11:24 -07:00
2023-08-04 10:52:31 -07:00
2023-09-13 12:32:47 -07:00
2023-07-13 17:24:00 -07:00
2023-07-05 11:41:59 -07:00
2023-07-27 15:26:37 -07:00
2023-06-21 13:39:54 -07:00
2023-07-25 12:05:24 -07:00
2023-07-05 11:42:31 -07:00
2023-07-05 11:42:31 -07:00
2023-06-28 14:06:39 -07:00
2023-06-21 13:39:53 -07:00
2023-07-27 15:26:37 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:54 -07:00
2023-06-21 13:39:53 -07:00
2023-08-21 15:33:24 -07:00
2023-07-06 11:54:46 -07:00
2023-08-21 15:33:24 -07:00
2023-07-05 11:41:18 -07:00
2023-07-25 12:05:24 -07:00
2023-07-05 11:41:59 -07:00
2023-07-25 12:05:24 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-21 13:39:53 -07:00
2023-06-29 16:43:21 -07:00
2023-07-06 11:54:48 -07:00
2023-06-21 13:39:54 -07:00
2023-06-21 13:39:54 -07:00
2023-06-21 13:39:53 -07:00
2023-08-25 10:37:37 -07:00
2023-06-21 13:39:53 -07:00