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

Re: Advice on converting to git from versioning-by-directory

From
Jeff King <peff@peff.net>
Date
Nov 23, 2006, 10:07 UTC
Message-ID
<20061123100757.GB32620@coredump.intra.peff.net>
In-Reply-To
<200611230916.46415.andyparkins@gmail.com>
On Thu, Nov 23, 2006 at 09:16:44AM +0000, Andy Parkins wrote:
> What should I do?  I've thought of a number of things:
>  * Recreate the whole lot by hand, the repository isn't huge and I could 
> manually apply each commit as a patch in the correct place.  It would be a 
> bit time-consuming but would mean I'd have what I wanted

If I understand you correctly, you want to take four branches, each with data in version1/, version2/, etc, and make it look like they all had data in the project root throughout history. Is that right?

If so, cogito's cg-admin-rewritehist can probably do what you want (I also posted a script a while back to do this exact thing, and I can dig it up if you want).

Previous: Andy ParkinsNext: Andy Parkins
Message 4 of 5 in “Advice on converting to git from versioning-by-directory”
  1. Andy ParkinsNov 23, 2006
  2. Andy WhitcroftNov 23, 2006
  3. Andy ParkinsNov 23, 2006
  4. Jeff KingNov 23, 2006
  5. Andy ParkinsNov 23, 2006

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.