]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff: cleanup xdl_trim_ends()
authorEzekiel Newren <ezekielnewren@gmail.com>
Fri, 2 Jan 2026 18:52:20 +0000 (18:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 4 Jan 2026 02:44:52 +0000 (11:44 +0900)
commit0e67fd8b4b702408afae82fcc70dbb70a4452db7
treefd81e45c738b9c126c353f17ff3057747bc094f1
parentfde7f6ebb113b9a27307d2e51dd20f8e78c81ea4
xdiff: cleanup xdl_trim_ends()

This patch is best viewed with a before and after of the whole
function.

Rather than using 2 pointers and walking them. Use direct indexing with
local variables of what is being compared to make it easier to follow
along.

Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xprepare.c