1
Fork 0
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:
Shannon Booth 2023-06-27 21:28:48 +12:00 committed by Andrew Kaster
parent f528aedc85
commit 55a3dfec10
2 changed files with 66 additions and 38 deletions

View file

@ -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);
}