chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e4b518
)
dgit-badcommit-fixup: Do update sameness filtering a bit later
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 16:22:28 +0000
(16:22 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 16:22:28 +0000
(16:22 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit-badcommit-fixup
patch
|
blob
|
history
diff --git
a/dgit-badcommit-fixup
b/dgit-badcommit-fixup
index 08b6e3766f2c8c51672a235eda4e339eafbd3c6e..ec6f57c78395f6f9c5a4debf767fa5bc6911da19 100755
(executable)
--- a/
dgit-badcommit-fixup
+++ b/
dgit-badcommit-fixup
@@
-144,12
+144,13
@@
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);
open U, "|git update-ref -m 'dgit bad commit fixup' --stdin" or die $!;