summaryrefslogtreecommitdiff
path: root/t/t0062-revision-walking.sh
diff options
context:
space:
mode:
authorLibravatar Jiang Xin <worldhello.net@gmail.com>2021-06-17 11:17:27 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-06-17 14:12:24 +0900
commit12d6991cf417465d567c38ba8ae7d59bda7a202f (patch)
tree9474d49f346d2db497f1bc2b95dacaf61b69128a /t/t0062-revision-walking.sh
parenttest: refactor to use "test_commit" to create commits (diff)
downloadtgif-12d6991cf417465d567c38ba8ae7d59bda7a202f.tar.xz
test: refactor to use "get_abbrev_oid" to get abbrev oid
Add new function "get_abbrev_oid" to get abbrev object ID. This function has a default value which helps to prepare a nonempty replace pattern for sed command. An empty replace pattern may cause sed fail to allocate memory. Refactor function "make_user_friendly_and_stable_output" to use "get_abbrev_oid" to get abbrev object ID. Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0062-revision-walking.sh')
0 files changed, 0 insertions, 0 deletions