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

Importing non-version controlled bits and pieces to Git

From
Peter Karlsson <peter@softwolves.pp.se>
Date
Jun 20, 2008, 09:42 UTC
Message-ID
<Pine.LNX.4.64.0806201036440.24013@ds9.cixit.se>
Hi!

I am looking at moving a project that has not been version-controlled in the regular sense into Git. I have found it to currently consist of 40 directories with copies of the set of files in various shapes.

I have reconstructed something that looks like a probable revision tree for these 40 directories, and I want to put this into Git so that I can examine what changes have been made where, and merge the various versions back together so that there can be one version with all the various fixes.

I was looking for something that could do this for me, but found nothing mentioned on the Wiki, and my Google karma was not good enough to find something, either. The closest thing I know of is the import-tars.perl script that I have used before, when importing something with a (near-)linear history, but this is too far off from a linear history to try to tar up the directories and import that way, I believe.

Has anyone written such an import tool, or should I start hacking?
-- 
\\// Peter, digital archeologist
Next: Miklos Vajna
Message 1 of 10 in “Importing non-version controlled bits and pieces to Git”
  1. Peter KarlssonJun 20, 2008
  2. Miklos VajnaJun 20, 2008
  3. Johannes SchindelinJun 20, 2008
  4. Peter KarlssonJun 20, 2008
  5. Johannes SixtJun 20, 2008
  6. Johannes SchindelinJun 20, 2008
  7. Peter KarlssonJun 23, 2008
  8. Peter KarlssonJun 23, 2008
  9. Karl HasselströmJun 24, 2008
  10. Peter KarlssonJun 24, 2008

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.