t3701: don't hard code sha1 hash values
commit902f414a72b29ca9c6c575faf29cc2b0b8b4fe1c
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Thu, 1 Mar 2018 10:50:58 +0000 (1 10:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Mar 2018 19:39:15 +0000 (1 11:39 -0800)
tree94d6f5c4f25cf4032783d5849dbf84753b3d31dc
parent11489a6539b8840ae18b9a5c7e6dd602e8f28209
t3701: don't hard code sha1 hash values

Use a filter when comparing diffs to fix the value of non-zero hashes
in diff index lines so we're not hard coding sha1 hash values in the
expected output. This makes it easier to change the expected output if
a test is edited as we don't need to worry about the exact hash value
and means the tests will work when the hash algorithm is transitioned
away from sha1.

Thanks-to: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3701-add-interactive.sh