Suu writes:

> Before I build/compile a git branch, I would like to know whether it has 
> changed since the last time I built it.
> If no change, I won't bother to build.
> in Subversion, it's a "revision number" that identifies the whole set of 
> source code at the time. If you commit another set of changes to the 
> branch, you get a new "revision number"
> What is its equivalent in GIT? (commit SHA-1 number?)
> How do I get that value? (git log -p 1?)

    git show-ref HEAD

will show you the shasum of HEAD. You can replace 'HEAD' by any other
ref (run `git show-ref` to see a list of them all).


Magnus Therning              OpenPGP: 0x927912051716CE39
email:   jabber:
twitter: magthe     

Java is, in many ways, C++--.
     -- M Feldman

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Attachment: signature.asc
Description: PGP signature

Reply via email to