Cf. `git-sh-setup` and the `--parseopt` option of `git-rev-parse`
Cf.
git-sh-setupand the--parseoptoption ofgit-rev-parse