mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibDiff: Add support for generating diffs with surrounding context
While not used in normal diffs due to limitations in the format, this may be used in context and unified format diffs.
This commit is contained in:
parent
f528aedc85
commit
55a3dfec10
2 changed files with 66 additions and 38 deletions
|
@ -11,6 +11,6 @@
|
|||
|
||||
namespace Diff {
|
||||
|
||||
ErrorOr<Vector<Hunk>> from_text(StringView old_text, StringView new_text);
|
||||
ErrorOr<Vector<Hunk>> from_text(StringView old_text, StringView new_text, size_t context = 0);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue