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:
parent
27f28998b1
commit
5e28da1aa4
3 changed files with 105 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
|
||||
set(SOURCES
|
||||
Hunks.cpp
|
||||
Format.cpp
|
||||
Generator.cpp
|
||||
Hunks.cpp
|
||||
)
|
||||
|
||||
serenity_lib(LibDiff diff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue