3 ms·
You can simulate git via: mkdir v2 ; cp -rp v1 v2
by sys_64738 5y ago
You can simulate git via:
mkdir v2 ; cp -rp v1 v2
- makeva 5y agoCool now do a git blame git push? git rebase?
- sys_64738 5y agoThese are tools you'd need to write atop the version dirs.
- HatchedLake721 5y agoSo you can't really then simulate git with: mkdir v2 ; cp -rp v1 v2 can you?
- sys_64738 5y agoThe fundamental git model you can. The tools needed are above that in some form such as diff. git does the equivalent. Stop being pedantic.
- LinuxBender 5y agoI think a closer example at the filesystem level would be rsnapshot alpha rsnapshot [1] uses hard links when it can to create a delta of changed files. Reverting can be done with rsync or cherry picking files. git blame would have to be done via something like auditd and syslog and nowhere near as easy as using git. I use rsnapshot to back up my git repos in the event they get corrupted. [1] - https://linux.die.net/man/1/rsnapshot https://linux.die.net/man/1/rsnapshot
- sys_64738 5y agoProbably rsync is smarter than my cp -rp example. Folk who are downvoting my original comment really don't understand how git version controls at the atomic level.
- kwhitefoot 5y agoor use cp --recursive --preserve --link so that the copy occupies almost no space. Of course this relies on your editor not editing in place.