From: Ian Jackson Date: Sat, 11 Aug 2018 11:24:51 +0000 (+0100) Subject: git-debrebase: keycommits: New $claimed_bw optional argument X-Git-Tag: archive/debian/6.7~130 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=cd7d350f25a111bec0843ff4cb60507ee92e4677;hp=7733ad1abc82a79f835c02f89d18c743dd107d91 git-debrebase: keycommits: New $claimed_bw optional argument No users yet, so NFC. Signed-off-by: Ian Jackson --- 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;