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

Re: hmm, can't we give the "root" a parent?

From
KSKay Sievers <kay.sievers@vrfy.org>
Date
Sep 12, 2005, 23:51 UTC
Message-ID
<20050912235149.GA10513@vrfy.org>
In-Reply-To
<Pine.LNX.4.58.0509121608130.3266@g5.osdl.org>
On Mon, Sep 12, 2005 at 04:09:58PM -0700, Linus Torvalds wrote:
Show 13 quoted lines
> 
> 
> On Tue, 13 Sep 2005, Kay Sievers wrote:
> > 
> > And I would prefer --pretty=raw with '\0' termination instead of '\n' so I can
> > replace the output from --header with --pretty=raw and can still use the same
> > parsing routine.
> 
> It struck me that "--header" works fine with "--parents".
> 
> So if you're currently already using "git-rev-list --header" and parsing 
> that, just add "--parents" and off you go. That's basically the same as 
> --pretty=raw + zero-termination.
Yeah, got the same idea. :) Have it already working. With the history tree
plugged in after "Linux 2.6.12-rc2":
   http://ehlo.org/~kay/?p=linux/kernel/git/torvalds/linux-2.6.git;a=shortlog;h=2d137c24e9f433e37ffd10b3d5f418157589a8d2
Grafting worked pretty nice by just doing:
  echo "8d38eadb7a97f265f7b3a9e8a30df358c3a546c8 e7e173af42dbf37b1d946f9ee00219cb3b2bea6a" > $LOCALROOT/linux/kernel/git/torvalds/linux-2.6.git/info/grafts
  echo $LOCALROOT/linux/kernel/git/tglx/history.git/objects > $LOCALROOT/linux/kernel/git/torvalds/linux-2.6.git/objects/info/alternates

Thanks, Kay

Previous: Linus TorvaldsNext: A Large Angry SCM
Message 10 of 13 in “hmm, can't we give the "root" a parent?”
  1. Kay SieversSep 12, 2005
  2. Linus TorvaldsSep 12, 2005
  3. Kay SieversSep 12, 2005
  4. Linus TorvaldsSep 12, 2005
  5. Kay SieversSep 12, 2005
  6. Linus TorvaldsSep 12, 2005
  7. Kay SieversSep 12, 2005
  8. Linus TorvaldsSep 12, 2005
  9. Linus TorvaldsSep 12, 2005
  10. Kay SieversSep 12, 2005
  11. A Large Angry SCMSep 12, 2005
  12. gitweb search in multi-headed treeTony Luck, Sep 16, 2005
  13. Kay SieversSep 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.