git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Dealing with rewritten upstream

From
Jay Soffian <jaysoffian@gmail.com>
Date
Sep 30, 2011, 23:28 UTC
Message-ID
<CAG+J_Dw9Oa=LH1CSE3Dr_B6de8X-SQfrWGbayPy3OD-UqB6siA@mail.gmail.com>
In-Reply-To
<CAMOZ1Bu-1hq1UN+UQs9HreR4bhJAoxGFLA=jdW8jgoC9g3DJHQ@mail.gmail.com>
On Fri, Sep 30, 2011 at 7:04 PM, Michael Witten <mfwitten@gmail.com> wrote:
Show 20 quoted lines
>> Pictorially:
>>
>> ---A---B---C---D---E... new-upstream/master
>>
>> ---a---b---c---d---e... old-upstream/master
>>    \       \       \
>>     1---2---3---4---5  master
>>
>> The obvious way do deal with this situation is:
>>
>> $ git merge -s ours -m "Splice in new-upstream/master" E
>>
>> Are there any other/better options I'm missing?
>>
>> (Eventually upstream plans to migrate entirely to git, so I can't just
>> run git-svn myself.)
>
> Surely, you'd rather have your master rewritten such that the relevant
> commits of new-upstream/master are used IN PLACE of the corresponding
> old-upstream/master. Have you considered ways to achieve that?

My master has over two years of history with its commit-IDs referenced in our bug tracker, in old emails, in archived binaries, etc. So no, I do not want to rewrite my master.

Now, if you mean, do I want to use something like replacement refs to try to more cleanly splice the new upstream into my existing master, no I haven't really explored that. git-replace isn't very well documented with examples of its intended use case.

I've considered setting up a new repo at a different URL that is rewritten to be based on the new upstream, and migrating to that, making the old repo read-only.

But I'm not sure that's worth the trouble. There doesn't seem to be too much downside to splicing in the new upstream via merge -s ours. It barely increases the repo size since the trees are the same. Maybe there's some other downsides I'm missing.

j.
Previous: Michael WittenNext: Philip Oakley
Message 3 of 4 in “Dealing with rewritten upstream”
  1. Jay SoffianSep 30, 2011
  2. Michael WittenSep 30, 2011
  3. Jay SoffianSep 30, 2011
  4. Philip OakleyOct 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.