merge script: handle --no-ff --no-commit correctly