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