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

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

From
Karl Hasselström <kha@treskal.com>
Date
Jun 24, 2008, 05:12 UTC
Message-ID
<20080624051204.GA1760@diana.vm.bytemark.co.uk>
In-Reply-To
<Pine.LNX.4.64.0806231543580.31319@ds9.cixit.se>
On 2008-06-23 15:46:11 +0100, Peter Karlsson wrote:
Show 13 quoted lines
> Peter Karlsson:
>
> > That might work. My problem is the non-linearity of the data I
> > want to import. But I might be able to massage the import-tars
> > output before I feed it to git-fast-import to describe the history
> > I need it to.
>
> I ended up making a script that converted a description file that
> described the hierarchy of versions and generated a fast-import file
> from it. Good to have so that I could move stuff around a bit to
> make up a version tree that looked somewhat reasonable (a lot of
> cross-directory copying has been going on here, and no-one knows
> which version is which).

A bit too late now, but ... 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.

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.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Peter KarlssonNext: Peter Karlsson
Message 9 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.