OASIS Virtual I/O Device (VIRTIO) TC

 View Only

[PATCH] fixupdiff: reverse add/del for code snippets

  • 1.  [PATCH] fixupdiff: reverse add/del for code snippets

    Posted 04-20-2022 17:16
    Turns out added/deleted versions for code snippets were reversed and no one noticed. Fix it up. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> --- fixupdiff.pl 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixupdiff.pl b/fixupdiff.pl index e7d3a0f..1c6b8e2 100644 --- a/fixupdiff.pl +++ b/fixupdiff.pl @@ -40,9 +40,9 @@ while (<>) { #also at beginning of line $line =~ s/^(^)/\$1/g; if ($add) { - $line =~ s/(.*)/$\DIFdel{$1}$/; - } else { $line =~ s/(.*)/$\DIFadd{$1}$/; + } else { + $line =~ s/(.*)/$\DIFdel{$1}$/; } } #print "%FIXED BY RULE 1
    "; -- MST