Switching to bash to use arrays to prototype desired behavior.
Look into escaping feature of git rev-parse?