Commit before branch switch.