Interlisp / medley

The main repo for the Medley Interlisp project. Wiki, Issues are here. Other repositories include maiko (the VM implementation) and Interlisp.github.io (web site sources)
https://Interlisp.org
MIT License
370 stars 19 forks source link

Want some way to recreate proper file versioning when working with git and many different commits/projects ongoing #426

Open masinter opened 3 years ago

masinter commented 3 years ago

most of the duplicates come about whenever you switch branches ... it replaces files without updating the hard links. So if you have a file FOO which in lisp has FOO;1 FOO;2 FOO;3 then FOO;3 is hard linked to FOO (no version). But when you switch branches in GitHub (and even if you switch back) it doesn't recreate the hard link. Rather from the Lisp side you'll see FOO;4 for what in Unix is FOO (no version) as well as FOO;1 FOO;2 FOO;3.

There's no easy way to fix this from Lisp since Lisp doesn't know about linked files. The "restore-versions.sh" script restores the hard links.

One way to approach this is by careful use of ShellCommand applied to something like (UNIX-FILENAME-FOR-DSK ...)

_Originally posted by @masinter in https://github.com/Interlisp/medley/pull/425#discussion_r694410027_

masinter commented 1 year ago

@rmkaplan has a different way of working with git -- maintaining a 'working' directory with versions (WMedley) and a 'git' directory which is where all the commits happen. Development happens in 'working' and then, when ready, files are copied to the 'gmedley' and committed.

I don't know what @fghalasz does.

My problem is that I'm trying to run in multiple configurations: Windows 10 with WSL, MacOS (latest) and CYGWIN; keeping those in sync... or not?

This isn't really about 'filebrowser' though so I'll rename