+ if (is_fast_fwd $old_head, $prev) {
+ my $differs = get_differs $old_head, $prev;
+ unless ($differs & ~D_PAT_ADD) {
+ # ffq-prev is ahead of us, and the only tree changes it has
+ # are possibly addition of things in debian/patches/.
+ # Just wind forwards rather than making a pointless pseudomerge.
+ update_head_checkout $old_head, $prev,
+ "debrebase: stitch (fast forward)";
+ runcmd @git, qw(update-ref -d), $ffq_prev; # should be atomic
+ return;
+ }
+ }
+ fresh_workarea();