I'd like to get the abbreviated commit hash of HEAD
using diff-tree, but I've tried all the following, all of which output a full commit hash:
git diff-tree --no-patch --abbrev-commit HEAD
git diff-tree --no-patch --abbrev=10 HEAD
git diff-tree --no-patch --format=%h HEAD
git diff-tree --no-patch --pretty=format:%h HEAD
I've switched to git rev-parse --short --verify HEAD
to get what I expected, but I wonder why diff-tree just won't give me an abbreviated commit hash?