]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff --color-moved: unify moved block growth functions
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Thu, 9 Dec 2021 10:30:04 +0000 (10:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Dec 2021 21:24:06 +0000 (13:24 -0800)
commitff046a0066f55cb730ced3f8eb54d508dcd3a4c7
tree7024a1f0de38e00f93b8b6987377c7e007e45ee3
parent08fba1076faf0b2c0bfeda628c84ac15efd27cfb
diff --color-moved: unify moved block growth functions

After the last two commits pmb_advance_or_null() and
pmb_advance_or_null_multi_match() differ only in the comparison they
perform. Lets simplify the code by combining them into a single
function.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c