From bdfe1ad904785df17f77676353ced353d360fc00 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 28 Jun 2019 15:17:53 +0100 Subject: [PATCH] dgit: In code, rename splitbrain quilt modes to splitting A "splitting" quilt mode is going to be one which requires split brain mode. But split brain mode is going to be possible in other quilt modes too. The existing name of the splitbrain quilt cache is correct: it is used precisely for quilt fixup, in split brain modes (even for non splitting quilt modes, now). In split brain mode without quilt, it is not needed or used. Signed-off-by: Ian Jackson --- dgit | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dgit b/dgit index 36e0a2b6..f79e3cfa 100755 --- a/dgit +++ b/dgit @@ -177,7 +177,7 @@ our $do_split_brain; # Interactions between quilt mode and split brain # (currently, split brain only implemented iff -# madformat_wantfixup && quiltmode_splitbrain) +# madformat_wantfixup && quiltmode_splitting) # # source format sane `3.0 (quilt)' # madformat_wantfixup() @@ -291,7 +291,7 @@ sub deliberately_not_fast_forward () { } } -sub quiltmode_splitbrain () { +sub quiltmode_splitting () { $quilt_mode =~ m/gbp|dpm|unapplied/; } @@ -970,7 +970,7 @@ sub notpushing () { sub determine_whether_split_brain () { my ($format,) = get_source_format(); printdebug "format $format, quilt mode $quilt_mode\n"; - if (madformat_wantfixup($format) && quiltmode_splitbrain()) { + if (madformat_wantfixup($format) && quiltmode_splitting()) { $do_split_brain = 1; } $do_split_brain //= 0; @@ -4444,7 +4444,7 @@ END my $actualhead = git_rev_parse('HEAD'); if (branch_is_gdr_unstitched_ff($symref, $actualhead, $archive_hash)) { - if (quiltmode_splitbrain()) { + if (quiltmode_splitting()) { my ($ffq_prev, $gdrlast) = branch_gdr_info($symref, $actualhead); fail f_ <