git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* current repository hash
@ 2008-06-16 11:51 Alf Clement
  2008-06-16 12:11 ` David Tweed
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Alf Clement @ 2008-06-16 11:51 UTC (permalink / raw)
  To: git

Hi all,

I want to compile the current repository hash id into my program, to
be able to checkout later this
id an see the exact files for the compile. It should flag if there are
currently modified files in the
directory tree.

What would be the best command to get a unique identifier?
Do I need the 40 digit hash id?
How can I make sure that a shorter hash id will be unique?

Thanks,
Alf

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-06-17  9:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 11:51 current repository hash Alf Clement
2008-06-16 12:11 ` David Tweed
2008-06-16 12:15 ` Santi Béjar
2008-06-16 18:30   ` Alf Clement
2008-06-16 18:45     ` Jeff King
2008-06-17  6:48       ` Alf Clement
2008-06-17  7:07         ` Johan Herland
2008-06-16 15:04 ` Jeff King
2008-06-17  9:51 ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).