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

Re: [PATCH] builtin-fast-export: Only output a single parent per line

From
Shawn O. Pearce <spearce@spearce.org>
Date
May 26, 2008, 01:49 UTC
Message-ID
<20080526014904.GZ29038@spearce.org>
In-Reply-To
<7vskw7jh7c.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> Pieter de Bie <pdebie@ai.rug.nl> writes:
> 
> > According to the git-fast-import man-page, you can only put a single
> > committish per merge: line, like this:
> >
> >   merge :10
> >   merge :11
> >
> > However, git-fast-export puts all parents on a single line, like this:
> >
> >   merge :10 :11
> >
> > This may be fine with git-fast-import,...
> 
> Is it fine for even git-fast-import?  fast-import.c: parse_merge() seems
> to suggest that it also wants one parent per "merge " line.

fast-import wants the same as bzr-fast-import; one parent per merge line. If git-fast-import was doing anything with multiple per line it was probably dropping everything after the first. :-(

This was a bug in fast-export; I'm glad Pieter has fixed it.
-- 
Shawn.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “builtin-fast-export: Only output a single parent per line”
  1. builtin-fast-export: Only output a single parent per linePieter de Bie, May 24, 2008
  2. Junio C HamanoMay 25, 2008
  3. Shawn O. PearceMay 26, 2008
  4. Junio C HamanoMay 26, 2008
  5. Junio C HamanoMay 26, 2008
  6. Shawn O. PearceMay 26, 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.