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

Re: [Question] info/grafts file.

From
RARyan Anderson <ryan@michonline.com>
Date
Nov 17, 2005, 00:57 UTC
Message-ID
<437BD56A.7030402@michonline.com>
In-Reply-To
<20051115000349.GA32136@hpsvcnb.fc.hp.com>
Carl Baldwin wrote:
Show 8 quoted lines
> This is fine, I just needed to know.
> 
> How hard is it to, in a generic way, take a grafts file and reconstruct
> commits to include the parents in the graft file in the actual tree?  I
> am wondering because I couldn't, after much work, get git-svnimport to
> find my merges correctly.  So, I am needing to hand-graft some merges in
> to make things right.  Any suggestions?  I could try to figure something
> out if I can find some time.  I'm good with graph traversals and such.

It's actually pretty easy. I wrote a rough (and not quite safe) tool to do this a week or so ago.

http://marc.theaimsgroup.com/?l=git&m=113131673606637&w=2

I will try and clean it up a bit and submit it for inclusion in contrib/ sometime this coming weekend, but you should be able to use it to solve this problem.

It's pretty straightforward, honestly. (And I'm pretty sure it could be faster if I did things slightly differently.)

Previous: Linus TorvaldsNext: Yann Dirson
Message 7 of 8 in “[Question] info/grafts file.”
  1. Carl BaldwinNov 14, 2005
  2. Petr BaudisNov 14, 2005
  3. Junio C HamanoNov 14, 2005
  4. Carl BaldwinNov 15, 2005
  5. Alan ChandlerNov 15, 2005
  6. Linus TorvaldsNov 15, 2005
  7. Ryan AndersonNov 17, 2005
  8. Yann DirsonNov 17, 2005

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.