chiark / gitweb /
git-debrebase: keycommits abolish use of last etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 19:40:31 +0000 (20:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 21:40:14 +0000 (22:40 +0100)
Previously, presumably, this little fragment was within an anonymous
sub.  Now it isn't any more, and we can simply return.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
git-debrebase

index c0600126ba5df7701c6823330bd6d030c2ddec4f..9a356df399f574da0c79bcb338e066f2b6708c61 100755 (executable)
@@ -604,10 +604,7 @@ sub keycommits ($;$$$) {
        } elsif ($ty eq 'DgitImportUnpatched') {
            $x->($trouble, 'dgitimport',
                 "found dgit dsc import ($head)");
-           $breakwater = undef;
-           $anchor = undef;
-           no warnings qw(exiting);
-           last;
+           return (undef,undef);
        } else {
            fail "found unprocessable commit, cannot cope: $head; $cl->{Why}";
        }