git-commit-vandalism/t/t5411
Jiang Xin 12d6991cf4 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>
2021-06-17 14:12:24 +09:00
..
common-functions.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
once-0010-report-status-v1.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0000-standard-git-push.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0001-standard-git-push--porcelain.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0002-pre-receive-declined.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0003-pre-receive-declined--porcelain.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0010-proc-receive-settings.sh receive-pack: new config receive.procReceiveRefs 2020-08-27 12:47:47 -07:00
test-0011-no-hook-error.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0012-no-hook-error--porcelain.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0013-bad-protocol.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0014-bad-protocol--porcelain.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0020-report-ng.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0021-report-ng--porcelain.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0022-report-unexpect-ref.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0023-report-unexpect-ref--porcelain.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0024-report-unknown-ref.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0025-report-unknown-ref--porcelain.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0026-push-options.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0027-push-options--porcelain.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0030-report-ok.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0031-report-ok--porcelain.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0032-report-with-options.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0033-report-with-options--porcelain.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0034-report-ft.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0035-report-ft--porcelain.sh test: compare raw output, not mangle tabs and spaces 2021-06-17 14:12:21 +09:00
test-0036-report-multi-rewrite-for-one-ref.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0037-report-multi-rewrite-for-one-ref--porcelain.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0038-report-mixed-refs.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0039-report-mixed-refs--porcelain.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0040-process-all-refs.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0041-process-all-refs--porcelain.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00
test-0050-proc-receive-refs-with-modifiers.sh test: refactor to use "get_abbrev_oid" to get abbrev oid 2021-06-17 14:12:24 +09:00