summaryrefslogtreecommitdiff
path: root/t/t4252/am-test-4-1
diff options
context:
space:
mode:
authorLibravatar Taylor Blau <me@ttaylorr.com>2019-04-04 20:37:42 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-04-05 15:06:04 +0900
commit5c07647d987d7f74f11ffadd39343c2f1540176c (patch)
tree354e4bb19f8a9450c89b27e09c2b1987c58e1d98 /t/t4252/am-test-4-1
parentmingw: allow building with an MSYS2 runtime v3.x (diff)
downloadtgif-5c07647d987d7f74f11ffadd39343c2f1540176c.tar.xz
t: move 'hex2oct' into test-lib-functions.sh
The helper 'hex2oct' is used to convert base-16 encoded data into a base-8 binary form, and is useful for preparing data for commands that accept input in a binary format, such as 'git hash-object', via 'printf'. This helper is defined identically in three separate places throughout 't'. Move the definition to test-lib-function.sh, so that it can be used in new test suites, and its definition is not redundant. This will likewise make our job easier in the subsequent commit, which also uses 'hex2oct'. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4252/am-test-4-1')
0 files changed, 0 insertions, 0 deletions