That's how you'd do it, but as @ethomson said, it's not necessary; passing fewer than two commits is a programming error in a higher layer, not something a user could do anything useful with.