LibDiff: Add Diff::write_context_header

This is used to write a context patch header.
This commit is contained in:
Shannon Booth 2023-07-03 18:07:45 +12:00 committed by Andreas Kling
commit 44f141dd24
Notes: sideshowbarker 2024-07-18 02:47:59 +09:00
2 changed files with 9 additions and 0 deletions

View file

@ -26,4 +26,5 @@ ErrorOr<void> write_unified_header(StringView old_path, StringView new_path, Str
ErrorOr<void> write_normal(Hunk const& hunk, Stream& stream, ColorOutput color_output = ColorOutput::No);
ErrorOr<void> write_context(Hunk const& hunk, Stream& stream, ColorOutput color_output = ColorOutput::No);
ErrorOr<void> write_context_header(StringView old_path, StringView new_path, Stream& stream);
}