From: Michael Nahas <mike.nahas@gmail.com>
To: Michael Witten <mfwitten@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: File Systems and a Theory of Edits
Date: Mon, 1 Aug 2011 08:01:18 -0400 [thread overview]
Message-ID: <CADo4Y9gtsKS660GCXObMeKztED+EJLBtHDHregvbMyR3S2_gUQ@mail.gmail.com> (raw)
In-Reply-To: <CADo4Y9i=PYBv33Jnu2osQX_FL97ng9FZ8TFeMMuc5CDGUhu1Gg@mail.gmail.com>
Michael,
I've been thinking about it and "git mount" is the right idea. I like
it a lot. In fact, the most common usage of "git checkout" can be
totally replaced by "git mount".
The other usage of "git checkout -- file" can be replaced by "git cp".
Mike
On Sun, Jul 31, 2011 at 5:13 PM, Michael Nahas <mike.nahas@gmail.com> wrote:
> Why not "git mount" indeed!
>
> At work, I have 3 very active branches and a slow build system. Right
> now, when I switch to a new branch, I have to rebuild everything.
> Being able to "git mount" 3 snapshots in 3 directories with three
> different build outputs would make switching branches faster.
>
> 3 working trees would be even better. I've been wondering if I can
> make another working trees by creating a .git/ directory and
> symlinking to the .git/objects and ./git/refs of my current
> repository. (I could use the environment variables GIT_INDEX_FILE and
> GIT_WORKING_TREE, but that would require setting and resetting them.
> Or using a different shell.)
>
> So a true "git mount" that allowed mounting editable branches would be
> very useful to me. (Although, if it wasn't for that crappy build
> system, I prefer a single working tree.)
>
> Mike Nahas
>
>
> On Sun, Jul 31, 2011 at 1:21 PM, Michael Witten <mfwitten@gmail.com> wrote:
>> 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.
>>
>
next prev parent reply other threads:[~2011-08-01 12:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-30 14:29 File Systems and a Theory of Edits Michael Nahas
2011-07-30 19:06 ` Ævar Arnfjörð Bjarmason
2011-07-31 8:15 ` René Scharfe
[not found] ` <CADo4Y9gU_Z73gCPCESvVZhLOJUJg+mTqHkeqpNv2L8xLJvKxEQ@mail.gmail.com>
2011-07-31 14:15 ` Michael Nahas
2011-07-31 17:21 ` Michael Witten
2011-07-31 21:13 ` Michael Nahas
2011-07-31 22:20 ` Andreas Schwab
2011-07-31 22:39 ` Michael Nahas
2011-08-01 12:01 ` Michael Nahas [this message]
2011-07-31 16:16 ` René Scharfe
2011-08-01 1:04 ` Junio C Hamano
2011-08-01 11:14 ` Michael Nahas
2011-07-30 19:40 ` John M. Dlugosz
2011-07-31 11:56 ` Michael Witten
2011-08-01 1:22 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADo4Y9gtsKS660GCXObMeKztED+EJLBtHDHregvbMyR3S2_gUQ@mail.gmail.com \
--to=mike.nahas@gmail.com \
--cc=git@vger.kernel.org \
--cc=mfwitten@gmail.com \
--cc=mike@nahas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).