]> git.ipfire.org Git - thirdparty/git.git/commit
repack: refactor finishing pack-objects command
authorChristian Couder <christian.couder@gmail.com>
Mon, 2 Oct 2023 16:54:58 +0000 (18:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2023 21:54:29 +0000 (14:54 -0700)
commitff8504e4ec5628edddb67f989256b7f2aea6c45d
treeedabaaac0a096a4f7ad24c6ccb1030fe4fd14202
parent66589f89ab8bf19f79fa9e9ec156bce43ed70e53
repack: refactor finishing pack-objects command

Create a new finish_pack_objects_cmd() to refactor duplicated code
that handles reading the packfile names from the output of a
`git pack-objects` command and putting it into a string_list, as well as
calling finish_command().

While at it, beautify a code comment a bit in the new function.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c