]> git.ipfire.org Git - thirdparty/git.git/commit
test-lib-functions: add parsing helpers for ls-files and ls-tree
authorNeeraj Singh <neerajsi@microsoft.com>
Tue, 5 Apr 2022 05:20:15 +0000 (22:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Apr 2022 20:13:26 +0000 (13:13 -0700)
commitfb2d0db502240231cde9584d2a908ae186a2ae06
tree270328180ba07793e8c55418f63f3ff14976e0ab
parent8a94d833497f3b8232684271c80a7da56f930939
test-lib-functions: add parsing helpers for ls-files and ls-tree

Several tests use awk to parse OIDs from the output of 'git ls-files
--stage' and 'git ls-tree'. Introduce helpers to centralize these uses
of awk.

Update t5317-pack-objects-filter-objects.sh to use the new ls-files
helper so that it has some usages to review. Other updates are left for
the future.

Signed-off-by: Neeraj Singh <neerajsi@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5317-pack-objects-filter-objects.sh
t/test-lib-functions.sh