It was pain for long time, but here it was longer than it should be
#15807 (comment)
We need to reuse this approach:
|
echo "patch $whitelist_path <<EOF" |
|
echo "$diff_output" |
|
echo "EOF" |
So users can simply copy and paste command to terminal to let it work.
All we need is just special printing in log of diff content, that we already do.