]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff: delete fields ha, line, size in xdlclass_t in favor of an xrecord_t
authorEzekiel Newren <ezekielnewren@gmail.com>
Fri, 26 Sep 2025 22:41:55 +0000 (22:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Sep 2025 21:12:46 +0000 (14:12 -0700)
commit6d507bd41a6f57f802a93a134cca0949a3d4370a
tree1150e76c18584c6c98910d0b1db4e412f280432e
parent5c294dceb23633a8bcced946ce3f65a06038cf52
xdiff: delete fields ha, line, size in xdlclass_t in favor of an xrecord_t

The fields from xdlclass_t are aliases of xrecord_t:
xdlclass_t.line -> xrecord_t.ptr
xdlclass_t.size -> xrecord_t.size
xdlclass_t.ha   -> xrecord_t.ha

xdlclass_t carries a copy of the data in xrecord_t, but instead of
embedding xrecord_t it duplicates the individual fields. A future
commit will change the types used in xrecord_t so embed it in
xdlclass_t first, so we don't have to remember to change the types
here as well.

Best-viewed-with: --color-words
Helped-by: Phillip Wood <phillip.wood123@gmail.com>
Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xprepare.c