Am 16.09.2010 09:49, schrieb Jonathan Leto:
Compare two integer revisions to see if one is greater than the other.

This cannot be done in git.

It *is* possible to tell which of 2 git commits happened later,
chronologically, but that requires the git repo.

mor...@trudi:~/rakudo>git describe
2010.08-103-gcd151f6

This gives you the last tag (aka release number) and the number of commits since that last tag. If you assume that somebody is tracking the central repository, comparing those two numbers is a rather good approximation of a linear revision number.

Maybe not ideal, but I think a sufficient approximation.

Cheers,
Moritz
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to