chiark / gitweb /
git-debrebase: update_head_postlaunder: print a message, if anything changed
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Jan 2018 16:40:58 +0000 (16:40 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 11:25:49 +0000 (12:25 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
git-debrebase

index b3a78ae..2fa4947 100755 (executable)
@@ -788,6 +788,8 @@ sub update_head_checkout ($$$) {
 
 sub update_head_postlaunder ($$$) {
     my ($old, $tip, $reflogmsg) = @_;
+    return if $tip eq $old;
+    print "git-debrebase: laundered (head was $old)\n";
     update_head $old, $tip, $reflogmsg;
     # no tree changes except debian/patches
     runcmd @git, qw(rm --quiet --ignore-unmatch -rf debian/patches);