t4013: make test hash independent
commit72f936b1206d807a2a252a71367a392001a83390
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 7 Feb 2020 00:52:40 +0000 (7 00:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Feb 2020 19:07:29 +0000 (7 11:07 -0800)
tree0feebdbb01ffe7fd72b26e5ac95af43d0400a202
parent5df0f11f079fa83db8269f2d9818d93a240b115c
t4013: make test hash independent

This test produces a large number of diff formats and compares the
output with test files that have content specific to SHA-1. Since we are
more interested in the format of the diffs, and not their specific
values, which are tested elsewhere, add a function which uses sed to
transform these specific object IDs into generic ones of the right size,
which we can then compare.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4013-diff-various.sh