[Tfug] Version Control
Glen Pfeiffer
glen at thepfeiffers.net
Tue Mar 26 15:19:46 MST 2013
On 26 Mar 2013, Bexley Hall wrote:
> > I haven't looked into exactly why they use a multiple of
> > memory to do this, but internally they calculate a SHA1 sum
> > on the object before adding it to the repo, and compare it
> > against other files in order to save just the changes, and
> > compress it. This also serves to dedupe the repo contents.
>
> OK. But, lots of things end up as BLOBs, then. Pictures,
> executables, test suites, non-ASCII documentation, schematics,
> etc. And, no way to meaningfully compare them other than to
> say, "THIS is not THAT".
The approach taken by *every* revision control system I have ever
used, is that they are not responsible for meaningfully comparing
two objects; they track changes. When you need to meaningfully
compare them, you farm that out to an app appropriate for that
file type.
--
Glen
More information about the tfug
mailing list