diff options
| author | Taylor Blau <me@ttaylorr.com> | 2025-10-15 18:29:08 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-16 10:08:56 -0700 |
| commit | f07263fd9fcb6b03f1e1db041269e2d5b85ccff8 (patch) | |
| tree | ffdf63551b3a4e99e5c7f6632e32a9e58e633b9d /t/t4013/diff.log_--root_--patch-with-stat_master | |
| parent | 337baea7212f0cf1aaa00a885d75098e260a22b0 (diff) | |
builtin/repack.c: pass `repack_write_midx_opts` to `midx_included_packs`
Instead of passing individual parameters (in this case, "existing",
"names", and "geometry") to `midx_included_packs()`, pass a pointer to a
`repack_write_midx_opts` structure instead.
Besides reducing the number of parameters necessary to call the
`midx_included_packs` function, this refactoring sets us up nicely to
inline the call to `midx_included_packs()` into
`write_midx_included_packs()`, thus making the caller (in this case,
`cmd_repack()`) oblivious to the set of packs being written into the
MIDX.
In order to do this, `repack_write_midx_opts` has to keep track of the
set of existing packs, so add an additional field to point to that set.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.log_--root_--patch-with-stat_master')
0 files changed, 0 insertions, 0 deletions
