On So, 18 Okt 2009, Johan Herland wrote: > A global, increasing version number ala SVN is fundamentally impossible in > any distributed version control system (like Git). Yes, agreed. The point is that I do not actually need the "distributed" part of git. I want one central repository and all collaborators commit to that. Yes, that is subversion, I know. We have no branches, no tags, nothing of that. Only trunk. > $ git describe > v1.0.4-14-g2414721 > > where the "v1.0.4" part is the last tag that the current state is based on, > the "14" part is the number of commit between that tag and the current So if we have only one tag (initial) then it would count the number of commits? And if yes, is it easy to find out at which commit a file has been changed last time (svn status -v). I have read a lot on the net about the impossibility, and I agree that in a distributed setting it does not work. And in fact we would not even have revision numbers on our local git repositories. Only one (the master checkout from which our distribution server is updated) needs to have some commit numbers. THe reason is that we use that as serial number for packages. One packages is roughly on package from CTAN (Comprehensive TeX Archive Network, like CPAN), and we want to make sure that if that is updated on CTAN and we import it into our system, the next time we create a TeX Live package for it (that will be served to quite a lot of users) we have a new version number. We first thought about using the version number as provided by authors, but that is completely useless, because there are tooo many authors of packages on CTAN where the version numbers are in no way increasing ;-) So we settled for the max of all the last changed revision number of the contained files, whcih is guaranteed to increase. As a lat resort I will try to use git-svn ... Again, thanks a lot and all the best Norbert ------------------------------------------------------------------------------- Dr. Norbert Preining Associate Professor JAIST Japan Advanced Institute of Science and Technology preining@xxxxxxxxxxx Vienna University of Technology preining@xxxxxxxx Debian Developer (Debian TeX Task Force) preining@xxxxxxxxxx gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 ------------------------------------------------------------------------------- QUOYNESS (n.) The hatefulness of words like 'relionus' and 'easiephit'. --- Douglas Adams, The Meaning of Liff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html