Migrate git-checkout.sh to use git-rev-parse --parseopt --keep-dashdash