chiark / gitweb /
git-debrebase: make_patches_staged: Return flag, are there any patches?
[dgit.git] / git-debrebase
index a0fc2aaa63fbd7f85795a45b299a691606d200ac..74e50768deaac7d7d43b487254a6aade0dcc1a5e 100755 (executable)
@@ -2398,9 +2398,11 @@ sub make_patches_staged ($) {
     # laundered.
     my ($secret_head, $secret_bw, $last_anchor) = walk $head;
     fresh_workarea();
+    my $any;
     in_workarea sub {
-       gbp_pq_export 'bw', $secret_bw, $secret_head;
+       $any = gbp_pq_export 'bw', $secret_bw, $secret_head;
     };
+    return $any;
 }
 
 sub make_patches ($) {