2020-09-12 20:38:55 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, Itamar S. <itamar8910@gmail.com>
|
2023-07-15 22:33:22 +12:00
|
|
|
* Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
|
2020-09-12 20:38:55 +03:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-09-12 20:38:55 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-06-21 18:48:17 +12:00
|
|
|
#include <AK/Error.h>
|
|
|
|
#include <AK/Forward.h>
|
2023-07-06 20:41:32 +12:00
|
|
|
#include <LibDiff/Forward.h>
|
2020-09-12 20:38:55 +03:00
|
|
|
|
|
|
|
namespace Diff {
|
2023-06-21 18:48:17 +12:00
|
|
|
|
|
|
|
enum class ColorOutput {
|
|
|
|
Yes,
|
|
|
|
No,
|
2020-09-12 20:38:55 +03:00
|
|
|
};
|
2023-06-21 18:48:17 +12:00
|
|
|
|
2023-06-27 20:55:50 +12:00
|
|
|
ErrorOr<void> write_unified(Hunk const& hunk, Stream& stream, ColorOutput color_output = ColorOutput::No);
|
2023-06-27 20:59:01 +12:00
|
|
|
ErrorOr<void> write_unified_header(StringView old_path, StringView new_path, Stream& stream);
|
|
|
|
|
2023-06-21 18:48:17 +12:00
|
|
|
}
|