]> git.ipfire.org Git - thirdparty/git.git/commit
t5316: refactor `max_chain()` to not depend on Perl
authorPatrick Steinhardt <ps@pks.im>
Thu, 3 Apr 2025 05:06:10 +0000 (07:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:47:41 +0000 (14:47 -0700)
commit88bef8db847ae45a22e5238e324654d72d078a26
tree7c607cfd323df40f1776221f3eba7043fe158193
parent9f4bce35b399508737e30bb5b22787d86cb5001f
t5316: refactor `max_chain()` to not depend on Perl

The `max_chain()` helper function is used to extract the maximum delta
chain of a packfile as printed by git-index-pack(1). The script uses
Perl to extract that data, but it can be trivially refactored to use
awk(1) instead.

Refactor the helper accordingly so that we can drop a couple of
PERL_TEST_HELPERS prerequisites.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5316-pack-delta-depth.sh