chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dgit-badcommit-fixup: Remove obsolete variable
[dgit.git]
/
dgit-badcommit-fixup
diff --git
a/dgit-badcommit-fixup
b/dgit-badcommit-fixup
index 08b6e3766f2c8c51672a235eda4e339eafbd3c6e..6d6a705ec8a235c84f31bea89df63ea1f81349c6 100755
(executable)
--- a/
dgit-badcommit-fixup
+++ b/
dgit-badcommit-fixup
@@
-144,11
+144,10
@@
foreach my $rline (split /\n/, $refs) {
warn "ref $refname refers to $type\n";
next;
}
- next if $rewrite eq $obj;
push @updates, [ $refname, $obj, $rewrite ];
}
-
our $worktree
;
+
@updates = grep { $_->[1] ne $_->[2] } @updates
;
#print Dumper(\@updates);