The --short option has existed since at least 1.8.1: https://git-scm.com/docs/git-symbolic-ref/1.8.1
--short