]> git.ipfire.org Git - thirdparty/git.git/commit
t1006: extract helper functions into new 'lib-cat-file.sh'
authorEric Ju <eric.peijian@gmail.com>
Fri, 24 Jul 2026 10:54:14 +0000 (12:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Jul 2026 15:46:58 +0000 (08:46 -0700)
commitfb60c49d18d1d52b6b81680586754168bc3ebc2c
treeb87448b2645f9cc73692e9c4c70819d73732e485
parentf05e099dea8ceeae5990f77ed6f4dc91d4be4694
t1006: extract helper functions into new 'lib-cat-file.sh'

Extract utility functions from the cat-file's test script
't1006-cat-file.sh' into a new 'lib-cat-file.sh' dedicated library file.

A subsequent commit will need these functions. This improves the code
reuse and readability, enabling future cat-file tests to share these
helpers without duplicating code.

While at it update the style of this line to follow coding
guidelines:

. "$TEST_DIRECTORY/lib-loose.sh"

to

. "$TEST_DIRECTORY"/lib-loose.sh

Signed-off-by: Eric Ju <eric.peijian@gmail.com>
Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-cat-file.sh [new file with mode: 0644]
t/t1006-cat-file.sh