Possible Duplicate:
How to retrieve the hash for the current commit in Git?
I.e. what's the git equivalent of hg parent or svn info.
Extra points for an answer that I can use in a script, i.e. It gives 'bbh653ad' rather than a load of words which contain the version number somewhere