[98388] trunk/dports/databases

Jeremy Lavergne jeremy at lavergne.gotdns.org
Fri Oct 5 09:39:15 PDT 2012


> I can't find an 'official' reference for it, but I believe GitHub says that 7 characters are unique (7**26).  Anyway, if it were not unique, the MacPorts checksums would alert the user.  Seems safe to me.
> 
> I also use the short hash as part of the full version string for the port since it identifies the last commit included from the branch. This may or may not matter to other ports.

Feel free to use `$ git log --abbrev-commit --pretty=oneline` to find out just how long your hash needs to be to be guaranteed unique in the repository. Seven is the default, but it will increase if necessary.

From the git site:
http://git-scm.com/book/en/Git-Tools-Revision-Selection




More information about the macports-dev mailing list