POV-Ray : Newsgroups : povray.off-topic : Git tutorial : Re: Git tutorial Server Time
29 Jul 2024 22:33:13 EDT (-0400)
  Re: Git tutorial  
From: Invisible
Date: 20 Apr 2011 06:02:31
Message: <4daeaf37@news.povray.org>
On 20/04/2011 10:44, Invisible wrote:

> I had assumed that all DVCSs were the same, but I now see that at least
> Git and Darcs use fundamentally different models.
>
> Fundamentally, any version control system tracks changes to files. What
> Git appears to be doing is something similar to RCS or CVS, where each
> file goes through a strictly sequential series of "versions", and one
> version comes "before" or "after" another. It seems that each commit
> stores the complete state of the entire repository. (Presumably as a
> diff relative to the previous commit, but still logically it's a
> snapshot of everything.) Git then uses "heads" to point to the most
> recent commit in each branch, or to other interesting points in the
> history.
>
> Darcs works completely differently. Darcs doesn't track sequential file
> versions, it tracks change-sets. It defines a "change-set algebra" where
> unrelated changes to the same file are independent, and can be applied
> or reverted independently. Changes to the same part of a file are not
> independent, and can only be applied in sequence. But unrelated changes
> are... unrelated.

It appears Mercurial works the same was as Git:

http://mercurial.selenic.com/wiki/UnderstandingMercurial


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.