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 20, 2008, 12:42 UTC
Message-ID
<Pine.LNX.4.64.0806201339330.4004@ds9.cixit.se>
In-Reply-To
<alpine.DEB.1.00.0806201323390.6439@racer>
Johannes Schindelin:
> On Fri, 20 Jun 2008, Miklos Vajna wrote:
> > Maybe contrib/fast-import/import-tars.perl?

As I noted, I have used that before, and it works best with linear histories, even if I managed to hack it to create a branch for a project that had a simple branching structure (an update was created for version n.x after version n+1.x was released).

> You should be able to use git-fast-import from a simple script
> yourself; if you would like to see an example how to feed
> fast-import, just export a few commits with "git fast-export
> HEAD~5..".

Yeah, that is what I am currently planning on doing. I was just trying to be lazy and see if someone already had solved the problem for me :-)

One complicating factor is that I am working with DOS/Windows source code, so all text files have CRLF line-endings, which means converting before feeding to fast-import, or manually doing "git add" with core.autocrlf == true. fast-import can't be set up to do CRLF auto-conversion, can it?

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Johannes SchindelinNext: Johannes Sixt
Message 4 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.