Re: File Systems and a Theory of Edits
- From
Michael Witten <mfwitten@gmail.com>
- Date
- Jul 31, 2011, 17:21 UTC
- Message-ID
- <CAMOZ1BtrgO1XhJfR2-1Mpd8Ytrz4pjVyhbPdbNxDP84hhiip+A@mail.gmail.com>
- In-Reply-To
- <CADo4Y9gECLJ45g_r-uZBRnfEVXBRw2EoF2HkRu=0-eJ2YCuBLA@mail.gmail.com>
On Sun, Jul 31, 2011 at 14:15, Michael Nahas <mike.nahas@gmail.com> wrote:
> I believe the solution for xargs may be John D.'s solution - to > "mount" the snapshot as a file system. And the "mount" command in git > is "git checkout". (Now, I almost want to rename "git checkout" to > "git remount"!)
Why not just `git mount', though? We could have different mount points too, so that it's easy to work with multiple `snapshots' at once (in the spirit of bazaar and mercurial, as well).
Perhaps `git umount' could be used to make the repository bare.
In any case, I always find myself wishing that the standard interfaces would make it easier to base an operation on a snapshot that is not yet mounted as the working tree. It can be quite cumbersome to switch the contents of the working tree.