mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
diff: Remove "Hunk:" text from output
While this is a useful piece of information it means that diff is producing hunks that are not of a valid normal diff format. This breaks the ability to redirect the output of diff to a file to generate a patch.
This commit is contained in:
parent
331f6a9e60
commit
312de21498
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/shannonbooth
Commit: 312de21498
Pull-request: https://github.com/SerenityOS/serenity/pull/19530
Reviewed-by: https://github.com/caoimhebyrne
Reviewed-by: https://github.com/kennethmyhra ✅
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
if (num_added > 1)
|
||||
sb.appendff(",{}", target_start + num_added - 1);
|
||||
|
||||
outln("Hunk: {}", sb.to_deprecated_string());
|
||||
outln("{}", sb.to_deprecated_string());
|
||||
for (auto const& line : hunk.removed_lines) {
|
||||
if (color_output)
|
||||
outln("\033[31;1m< {}\033[0m", line);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue