Re:Git as a Storage
by 0x000000001 on Friday October 08, 2021 @11:33PM
(#28806808)
doesn't the zfs diff command mostly cover it? You have snapshots, diffs, and clones which is basically equivalent to commits, diffs, and branches. You're missing commit logs and that's it, right?
[ Parent
| on HN ]
Re:Git as a Storage
by Dylan16807 on Saturday October 09, 2021 @12:41AM
(#28807111)
If you introduce a new file onto multiple ZFS 'branches', there is no way to have it stored copy-on-write.
But copying a file from one 'branch' to another is the only way to emulate a cherrypick or merge.
So after a while of active use with many branches, you're going to have a lot of redundant copies of files all over. You're no longer making proper use of snapshots, and it becomes less efficient than having a working directory and a directory full of commits that hard link to each other.
Re:Git as a Storage
by 0x000000001 on Sunday October 10, 2021 @11:58AM
(#28819404)
Good point, but I bet this could be changed in ZFS.