1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

LibDiff: Add new API to generate hunks from two pieces of text

For now this is just a standard implementation of the longest
common subsequence algorithm over the lines, except that it doesn't
do any coalescing of the lines. This isn't really ideal since
we get a single Hunk per changed line, and is definitely something
to improve in the future.
This commit is contained in:
Mustafa Quraish 2021-09-15 21:58:53 -04:00 committed by Brian Gianforcaro
parent 27f28998b1
commit 5e28da1aa4
3 changed files with 105 additions and 1 deletions

View file

@ -1,7 +1,8 @@
set(SOURCES
Hunks.cpp
Format.cpp
Generator.cpp
Hunks.cpp
)
serenity_lib(LibDiff diff)