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@xxxxxxxxx> 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html