Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
+sub cmd_conclude () {
+ my ($ffq_prev, $gdrlast, $ffq_prev_commitish) = ffq_prev_info();
+ if (!$ffq_prev_commitish) {
+ fail "No ongoing git-debrebase session." unless $opt_noop_ok;
+ return;
+ }
+ my $dangling_head = get_head();
+
+ badusage "no arguments allowed" if @ARGV;
+ do_launder_head 'launder for git-debrebase quick';
+ do_stitch 'quick';
+}
+
sub cmd_convert_from_gbp () {
badusage "needs 1 optional argument, the upstream git rev"
unless @ARGV<=1;
sub cmd_convert_from_gbp () {
badusage "needs 1 optional argument, the upstream git rev"
unless @ARGV<=1;
or be prececded by C<-->,
to distinguish them from options for git-debrebase.
or be prececded by C<-->,
to distinguish them from options for git-debrebase.
+=item git-debrebase conclude
+
+Finishes a git-debrebase session,
+tidying up the branch and making it fast forward again.
+
+Specifically: if the branch is unstitched,
+launders and restitches it,
+making a new pseudomerge.
+Otherwise, it is an error,
+unless --noop-ok.
+
=item git-debrebase quick
Unconditionally launders and restitches the branch,
=item git-debrebase quick
Unconditionally launders and restitches the branch,
+Ec="F:No ongoing git-debrebase session"
# input state:
# stitched? st'd st'd unst'd unst'd
# input state:
# stitched? st'd st'd unst'd unst'd
subcmd stitch Ns Nu Sltf Stf
#subcmd pre-push Ns Nu Sltf Stf
subcmd quick ns Sl Sltf Sl
subcmd stitch Ns Nu Sltf Stf
#subcmd pre-push Ns Nu Sltf Stf
subcmd quick ns Sl Sltf Sl
-#subcmd conclude "$Ec" "$Ec" Sltf Sl
+subcmd conclude "$Ec" "$Ec" Sltf Sl
#subcmd make-patches sPft sPft uPft uPft
#subcmd dgit-upload-hook Psft Psft SPft SPft
#
#subcmd make-patches sPft sPft uPft uPft
#subcmd dgit-upload-hook Psft Psft SPft SPft
#