sequencer: handle post-rewrite for merge commands