Re: current repository hash

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Santi Béjar
Date: Monday, June 16, 2008 - 5:15 am

On Mon, Jun 16, 2008 at 13:51, Alf Clement <alf.clement@gmail.com> wrote:

You can look at how git does it:

http://git.kernel.org/?p=git/git.git;a=blob;f=GIT-VERSION-GEN;hb=HEAD


"git rev-parse HEAD" for a unique identifier,
but "git describe" is more convenient/useful.


Normally 7 or 8 are sufficient.


You can't. Even the 40 digit hash is "only" cryptographically unique.
But within a project 7 or 8 digits are unique enough for practical
use.

Santi
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
current repository hash, Alf Clement, (Mon Jun 16, 4:51 am)
Re: current repository hash, David Tweed, (Mon Jun 16, 5:11 am)
Re: current repository hash, Santi Béjar, (Mon Jun 16, 5:15 am)
Re: current repository hash, Jeff King, (Mon Jun 16, 8:04 am)
Re: current repository hash, Alf Clement, (Mon Jun 16, 11:30 am)
Re: current repository hash, Jeff King, (Mon Jun 16, 11:45 am)
Re: current repository hash, Alf Clement, (Mon Jun 16, 11:48 pm)
Re: current repository hash, Johan Herland, (Tue Jun 17, 12:07 am)
Re: current repository hash, Johannes Schindelin, (Tue Jun 17, 2:51 am)