diff options
| author | Taylor Blau <me@ttaylorr.com> | 2026-05-19 11:58:07 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-05-20 11:31:14 +0900 |
| commit | 6e38bcc51014e89a430bbd4f708170f5f7795b76 (patch) | |
| tree | 702169fc1307ee444833f6af214f30dd50abd7dc /t/t4013/diff.diff_initial..side | |
| parent | 1505990d72585cbdf35cd596a2167c2a8a4edda1 (diff) | |
repack-midx: extract `repack_fill_midx_stdin_packs()`
The function `write_midx_included_packs()` manages the lifecycle of
writing packs to stdin when running `git multi-pack-index write` as a
child process.
Extract a standalone `repack_fill_midx_stdin_packs()` helper, which
handles `--stdin-packs` argument setup, starting the command, writing
pack names to its standard input, and finishing the command.
This simplifies `write_midx_included_packs()` and prepares for a
subsequent commit where the same helper is called with `cmd->out = -1`
to capture the MIDX's checksum from the command's standard output,
which is needed when writing MIDX layers with `--no-write-chain-file`.
No functional changes are included in this patch.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
