From: Stephen Kelly <steveire@gmail.com>
To: git@vger.kernel.org
Subject: Re: Additional remote on a local clone. Where do the objects go?
Date: Mon, 06 Sep 2010 01:50:59 +0200 [thread overview]
Message-ID: <i61ad4$jq2$1@dough.gmane.org> (raw)
In-Reply-To: AANLkTik=qeoq67KZa8Bj7Ynrt8O8ija6yeH6_+e4=gOZ@mail.gmail.com
Tay Ray Chuan wrote:
> Hi,
>
> (Please avoid dropping emails from the Cc list. Since you're using
> gmail, you could use "Reply to all".)
Actually I'm posting using GMane through KNode. I'll keep you in the CC but
there's no need to CC me.
>
> On Wed, Sep 1, 2010 at 7:51 PM, Stephen Kelly <steveire@gmail.com> wrote:
>> Tay Ray Chuan wrote:
>>> Two improvements: shared objects, and configuring git-pull:
>>
>> I'm confused. I thought the local clone already used shared objects?
>
> You'd have to use "-s/--shared" with git clone; I don't think it's
> done by default.
Indeed, --local is default, which sets up hard links, so they are shared in
that sense. So it looks like the suggestion is I should remove the --local
clones and start again with --shared so that the objects directory is
symlinked? Is that better than hard links?
>
> (On hindsight, I should have used this instead of setting it up
> manually by writing to .git/objects/info/alternates.)
>
>> So this will pull from the gitorious remote and store the objects in the
>> parent git from where they are shared with this local clone?
>
> No, you'd have to first pull from gitorious in your parent directory,
> before going into the local repo/branch (eg. qt46) and then pulling
> again.
Right. That's what I do currently, but it's not optimally convenient. I'd
like to just go to the qt46 clone, set it up with the correct remote url and
pull there, with the result being that the objects I pull are still shared
across all the local clones.
>
>> Which is the better solution between this and git-new-workdir given that
>> these are permanent branches, not temporary, and I'll want to push and
>> pull various clones and share the objects. It looks like the
>> git-new-workdir option creates symlinks, whereas the local clone creates
>> hard links, and this solution creates a redirect of sorts.
>
> I haven't used git-new-workdir comprehensively, so I'll avoid
> commenting too much, but I'd like to know if you've looked at
> branches? You can just switch between each and do your qt 4.6- and
> 4.7-specific work.
Switching between branches costs time and I often need to work with more
than one at a time, and I need separate build directories for them, so I'm
trying to get these 'permanent checked-out branch directories' set up
conveniently.
>
> I say that, because what you're doing sounds like what a hg user would
> do to emulate git branches.
>
I only used hg for the first time on Friday to clone a repo. Not sure what
the workflow with that SCM is.
Thanks for the pointers,
Steve.
next prev parent reply other threads:[~2010-09-05 23:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-01 7:12 Additional remote on a local clone. Where do the objects go? Stephen Kelly
2010-09-01 10:32 ` Tay Ray Chuan
2010-09-01 11:51 ` Stephen Kelly
2010-09-04 14:15 ` Tay Ray Chuan
2010-09-05 23:50 ` Stephen Kelly [this message]
2010-09-01 10:34 ` Jakub Narebski
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='i61ad4$jq2$1@dough.gmane.org' \
--to=steveire@gmail.com \
--cc=git@vger.kernel.org \
/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).