]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff --color-moved: shrink potential moved blocks as we go
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Thu, 9 Dec 2021 10:30:05 +0000 (10:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Dec 2021 21:24:06 +0000 (13:24 -0800)
commit0e488f173257e5ab766267ac5a5c4c9f3f1ce343
treedc73443124ee5ca0db59279cab4bb78386e2c49c
parentff046a0066f55cb730ced3f8eb54d508dcd3a4c7
diff --color-moved: shrink potential moved blocks as we go

Rather than setting `match` to NULL and then looping over the list of
potential matched blocks for a second time to remove blocks with no
matches just filter out the blocks with no matches as we go.

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