]> git.ipfire.org Git - thirdparty/git.git/commit
t4001: add a test comparing basename similarity and content similarity
authorElijah Newren <newren@gmail.com>
Sun, 14 Feb 2021 07:51:46 +0000 (07:51 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Feb 2021 02:02:16 +0000 (18:02 -0800)
commitf3845257a55aa5c949ce2543d53fe1f28b5072df
treed991c7ee26e014a7615c63d2fb6a369f0a32eb2f
parent829514c5151deee1b37cdeaf451bf28219602126
t4001: add a test comparing basename similarity and content similarity

Add a simple test where a removed file is similar to two different added
files; one of them has the same basename, and the other has a slightly
higher content similarity.  In the current test, content similarity is
weighted higher than filename similarity.

Subsequent commits will add a new rule that weighs a mixture of filename
similarity and content similarity in a manner that will change the
outcome of this testcase.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4001-diff-rename.sh