]> git.wh0rd.org - home.git/commitdiff
git-rb-catchup: log first failure info
authorMike Frysinger <vapier@gentoo.org>
Wed, 9 Feb 2022 17:38:57 +0000 (12:38 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 9 Feb 2022 17:38:57 +0000 (12:38 -0500)
.bin/git-rb-catchup

index cb34e137c99d5127a17f42efaceccd5b76e6c4b3..5cfdfc877e31c03ff53ebfdeb165afb55178f3af 100755 (executable)
@@ -86,12 +86,13 @@ def rebase_bisect(lbranch: str,
 
     if pmin or pmax:
         last_target = f'{rbranch}~{first_fail}'
+        result = git(['log', '-1', '--format=%s', last_target])
+        subject = result.stdout.strip()
         if leave_rebase:
             print('Restarting', last_target)
             result = git(['rebase', last_target], check=False)
             print(result.stdout.strip())
-        else:
-            print('Found first failure', last_target)
+        print(f'* Found first failure {last_target}: {subject}')
     else:
         print('All caught up!')