> 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


_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to