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

Re: Importing non-version controlled bits and pieces to Git

From
Peter Karlsson <peter@softwolves.pp.se>
Date
Jun 24, 2008, 06:46 UTC
Message-ID
<Pine.LNX.4.64.0806240742240.5039@ds9.cixit.se>
In-Reply-To
<20080624051204.GA1760@diana.vm.bytemark.co.uk>
Karl Hasselström:
> A bit too late now, but ...
Not really, I'm on to the next project to import :-)
> another thing you could have done is make a straight linear import à
> la import-tars, and then modified the parentage with grafts until it
> looked good; and then finally use filter-branch to make the grafts
> part of the "real" history.

Yeah, I was considering this approach, but then I was half-way designing the script in my head, plus that the import is so quick that it was easy enough to re-write the configuration file and re-import to try something else. I love that aspect of Git -- the preparing of the file to import takes longer than the actual git-fast-import call...

> The advantage of this approach is that you can edit the parentage
> almost interactively, which should be the best approach given that
> you have a small number of commits and have to guess their
> relationships.

"Almost" being the magic word :-) I achieved more or less the same by re-importing. Plus that the job of preparing tarballs of everything would have been some work as well, since I had to choose which files to import from each directory (and do CRLF transform).

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Karl Hasselström
Message 10 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.