git-sh-setup: refactor ident-parsing functions