Re: Using git-replace in place of grafts -- and publishing .git/refs/replace between repos?

2012-09-15 Thread Junio C Hamano
David Chanters writes: > I've tried: > > [remote "origin"] > fetch = > +refs/replace/*:+refs/heads/*:refs/remotes/origin/*:refs/replace/* Read the documentation and learn about instead of blindly guessing. [remote "origin"] fetch = +refs/heads/*:refs/remotes/ori

Re: Using git-replace in place of grafts -- and publishing .git/refs/replace between repos?

2012-09-15 Thread Christian Couder
Hi, On Sat, Sep 15, 2012 at 11:49 PM, David Chanters wrote: > Hi, > > On 15 September 2012 18:21, Junio C Hamano wrote: > >> Assuming that they do, pushing the replacement ref makes the >> replacing object available in the pushed-into repository, so >> they will *not* rely on your repository. >

Re: Using git-replace in place of grafts -- and publishing .git/refs/replace between repos?

2012-09-15 Thread David Chanters
Hi, On 15 September 2012 18:21, Junio C Hamano wrote: > David Chanters writes: >> 2. If I do publish it, are there any caveats with that? i.e., >> because the replace data will likely point to a repo which in my >> working checkout I added with "git-remote", is that going to be a >> problem? >

Re: Using git-replace in place of grafts -- and publishing .git/refs/replace between repos?

2012-09-15 Thread Junio C Hamano
David Chanters writes: > 1. I thought the replace data in .git/refs/replace was published when > I did "git push" so that others could use this information as a > base-point, yet it seems not to be the case. How do I publish this? If you don't tell it what to push, the command will just update

Using git-replace in place of grafts -- and publishing .git/refs/replace between repos?

2012-09-15 Thread David Chanters
Hi, Earlier this month I asked how best to handle two branches without a common ancestor to sync changes from one branch to another. Initially I did this via the grafts mechanism, but this wasn't a "shared" solution, in that the graft was local to my checkout of the repository and no one else's.