Shorting a Git-REV

Note to self: how to get a shorted git rev.

REV=$(git rev-parse HEAD)
echo ${REV::7}

or the correct way ;-) :

git rev-parse --short HEAD