]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-edit
edit|purge: improve output on rewrites
[public-inbox.git] / script / public-inbox-edit
index ff0351a389cca4243a28a64971ba3b8533438da4..7a534cc2b094bc5f796a34aec32ce76dbda0a48a 100755 (executable)
@@ -207,7 +207,7 @@ W: possible message boundary splitting error
 
                next unless $opt->{verbose};
                # should we consider this machine-parseable?
-               print "$ibx->{mainrepo}:\n\tNONE\n";
+               PublicInbox::AdminEdit::show_rewrites(\*STDOUT, $ibx, []);
                next;
        }
 
@@ -223,11 +223,6 @@ W: possible message boundary splitting error
                }
                next unless $opt->{verbose};
                # should we consider this machine-parseable?
-               print "$ibx->{mainrepo}:";
-               if (scalar @$commits) {
-                       print join("\n\t", '', @$commits), "\n";
-               } else {
-                       print "\tNONE\n";
-               }
+               PublicInbox::AdminEdit::show_rewrites(\*STDOUT, $ibx, $commits);
        }
 }