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

Alter parent ID of existing commit object

From
Paul Richards <paul.richards@gmail.com>
Date
Apr 26, 2010, 10:13 UTC
Message-ID
<n2xa1138db31004260313jcd22b2ebw403ca2bd547e784b@mail.gmail.com>

Hi, Is it possible to edit an old commit object and only alter the ID of the parent commit but otherwise leave all the other information intact (tree, message, authors, date, etc).

I'd expect such a command to return the new hash of the modified commit.
-- 
Paul Richards
Next: Jonathan Nieder
Message 1 of 4 in “Alter parent ID of existing commit object”
  1. Paul RichardsApr 26, 2010
  2. Jonathan NiederApr 26, 2010
  3. Paul RichardsApr 26, 2010
  4. Jakub NarebskiApr 26, 2010

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.