mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibDiff: Add Diff::write_unified_header
This is used to write a unified patch header.
This commit is contained in:
parent
a4e50deeea
commit
f528aedc85
Notes:
sideshowbarker
2024-07-17 21:26:19 +09:00
Author: https://github.com/shannonbooth
Commit: f528aedc85
Pull-request: https://github.com/SerenityOS/serenity/pull/19616
Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 10 additions and 0 deletions
|
@ -21,6 +21,8 @@ enum class ColorOutput {
|
|||
};
|
||||
|
||||
ErrorOr<void> write_unified(Hunk const& hunk, Stream& stream, ColorOutput color_output = ColorOutput::No);
|
||||
ErrorOr<void> write_unified_header(StringView old_path, StringView new_path, Stream& stream);
|
||||
|
||||
ErrorOr<void> write_normal(Hunk const& hunk, Stream& stream, ColorOutput color_output = ColorOutput::No);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue