diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2018-03-01 10:50:58 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-01 11:39:15 -0800 |
commit | 902f414a72b29ca9c6c575faf29cc2b0b8b4fe1c (patch) | |
tree | 94d6f5c4f25cf4032783d5849dbf84753b3d31dc /kwset.c | |
parent | t3701: use test_write_lines and write_script (diff) | |
download | tgif-902f414a72b29ca9c6c575faf29cc2b0b8b4fe1c.tar.xz |
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>
Diffstat (limited to 'kwset.c')
0 files changed, 0 insertions, 0 deletions