chiark / gitweb /
dgit-badcommit-fixup: Debugging (commented out)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 18:08:52 +0000 (18:08 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 18:32:14 +0000 (18:32 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit-badcommit-fixup

index bab8605..98720e5 100755 (executable)
@@ -79,7 +79,6 @@ sub rewrite_commit ($) {
     my $m = \ $memo{$obj};
     return $$m if defined $$m;
     my $olddata = getobj $obj, 'commit';
-#print STDERR ">$obj|$olddata<\n";
     $olddata =~ m/(?<=\n)(?=\n)/ or die "$obj ?";
     my $msg = $';
     local $_ = $`;
@@ -98,8 +97,10 @@ sub rewrite_commit ($) {
     if ($newdata eq $olddata) {
        $newobj = $obj;
        $count{unchanged}++;
+#print STDERR "UNCHANGED $obj\n";
     } else {
        $newobj = hashobj $newdata, 'commit';
+#print STDERR "REWRITTEN $obj $newobj\n";
     }
     $$m= $newobj;
     return $newobj;