News for hackers. Stuff that matters.
Re:Why Git Is Hard by rcxdude on Saturday October 07, 2023 @04:50AM (#37800143)
Now that is an implementation detail: all of those tools treat commits as snapshots primarily. Internally they may use diffs in order to compress the data (as does git), but the commits are primarily presented to the user as snapshots, and only secondarily treated as diffs in some circumstances (this flipping is a confusing point, to be fair, and something which git does a lot more of, which I think can add to the confusion. e.g. rebases are really turnings a series of commits into diffs, and then applying those diffs onto a different base commit to create a new string of commits. But the git man page just describes this as 'moving commits'. SVN and CVS just don't support this functionality, and mecurial buries it behind an extension).

If you want examples of VCS that treat commits as diffs conceptually, look at darcs and pijul.

Re:Why Git Is Hard by avgcorrection on Saturday October 07, 2023 @05:27AM (#37800293)
Good point about patch-based VCSs. The diff/snapshot thing is definitely an implementation detail for snapshot-based VCS. (I haven't tried out patch-based ones yet.)