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

Re: move files between disparate repos and maintain version history

From
Jeff King <peff@peff.net>
Date
Mar 3, 2009, 17:18 UTC
Message-ID
<20090303171835.GB454@coredump.intra.peff.net>
In-Reply-To
<f95d47890903030858xb398b5fy1aeabb19166e6077@mail.gmail.com>
On Tue, Mar 03, 2009 at 11:58:42AM -0500, David Copeland wrote:
> The first option worked, insomuch the history of diffs is preserved,
> but the dates are all today.

That's odd. It works fine here. Can you confirm that the correct dates in the "patches" file (i.e., the output of format-patch)? What are you using to look at the patches? Note that gitk will show you both the "committer" and the "author" fields. The "author" field should have the original author and time of the patch, but the "committer" will be you, today.

> The second option was a little over my head; is the idea there that
> you are setting up a branch that has ONLY the files I care about (with
> all their history), and then I pull from the other repo as if they are
> related?  That seems like it might preserve the dates...
Yes, that is exactly what is happening in the second example.
-Peff
Previous: David CopelandNext: David Copeland
Message 4 of 7 in “move files between disparate repos and maintain version history”
  1. davetron5000Mar 2, 2009
  2. Jeff KingMar 3, 2009
  3. David CopelandMar 3, 2009
  4. Jeff KingMar 3, 2009
  5. David CopelandMar 3, 2009
  6. Peter BaumannMar 3, 2009
  7. Jeff KingMar 3, 2009

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.