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

Re: git fast-import : How to change parent during import?

From
Vitor Antunes <vitor.hda@gmail.com>
Date
Aug 28, 2011, 15:23 UTC
Message-ID
<20110828162325.5f479ef7@fenix.utopia.dhis.org>
In-Reply-To
<20110308024427.GA21471@elie>

On Mon, 7 Mar 2011 20:44:27 -0600 Jonathan Nieder <jrnieder@gmail.com> wrote:

Show 6 quoted lines
> > Is it possible to change the parent of a commit during fast import?
> > I've tried using "reset" command and making a new commit pointing to a
> > new parent, but in both cases I get a "new tip ... does not contain
> > ..." error message.
> 
> Have you tried "git fast-import --force"?

I know this is an old topic, but I'm looking into this again now. What I'm now trying to do is to stop using "--force".

Is there a way to manually force fast-import to drop an old commit that the frontend script decided it was no longer necessary?

Thanks,
-- 
Vitor Antunes
Previous: Vitor AntunesNext: Jonathan Nieder
Message 7 of 9 in “git fast-import : How to change parent during import?”
  1. Vitor AntunesMar 8, 2011
  2. Jonathan NiederMar 8, 2011
  3. Vitor AntunesMar 8, 2011
  4. Jonathan NiederMar 8, 2011
  5. Vitor AntunesMar 9, 2011
  6. Vitor AntunesMar 30, 2011
  7. Vitor AntunesAug 28, 2011
  8. Jonathan NiederAug 28, 2011
  9. Sverre RabbelierAug 29, 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.