Use git-rev-list --header.
tree827cbcb4888b09b646e9685e1c2db94c35edffd1
-rwxr-xr-x 45327 gitk