From cd7d350f25a111bec0843ff4cb60507ee92e4677 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 11 Aug 2018 12:24:51 +0100 Subject: [PATCH 1/1] git-debrebase: keycommits: New $claimed_bw optional argument No users yet, so NFC. Signed-off-by: Ian Jackson --- git-debrebase | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/git-debrebase b/git-debrebase index e068f35f..8ddf18da 100755 --- a/git-debrebase +++ b/git-debrebase @@ -810,8 +810,8 @@ sub classify ($) { return $classify->("VanillaMerge"); } -sub keycommits ($;$$$$) { - my ($head, $furniture, $unclean, $trouble, $fatal) = @_; +sub keycommits ($;$$$$$) { + my ($head, $furniture, $unclean, $trouble, $fatal, $claimed_bw) = @_; # => ($anchor, $breakwater) # $unclean->("unclean-$tagsfx", $msg, $cl) @@ -827,6 +827,8 @@ sub keycommits ($;$$$$) { # $fatal is for unprocessable commits, and should normally cause # a failure. If ignored, agaion, (undef, undef) is returned. # + # If $claimed_bw, this is supposed to be a breakwater commit. + # # If a callback is undef, fail is called instead. # If a callback is defined but false, the situation is ignored. # Callbacks may say: @@ -834,6 +836,7 @@ sub keycommits ($;$$$$) { # if the answer is no longer wanted. my ($anchor, $breakwater); + $breakwater = $head if $claimed_bw; my $clogonly; my $cl; my $found_pm; -- 2.30.2