1. Stefan Saasen
  2. git


Pieter de Bie  committed 5070b49

builtin-fast-export: Only output a single parent per line

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 changes fast-export to output a single parent per line. Otherwise
neither git-fast-import nor bzr-fast-import can read its output.

[jc: fix-up to remove excess LF in the output that makes fast-import barf]

Signed-off-by: Pieter de Bie <pdebie@ai.rug.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits e00f379
  • Branches master

Comments (0)

Files changed (1)

File builtin-fast-export.c

View file
 		if (i == 0)
 			printf("from :%d\n", mark);
-		else if (i == 1)
-			printf("merge :%d", mark);
-			printf(" :%d", mark);
+			printf("merge :%d\n", mark);
-	if (i > 1)
-		printf("\n");
 	rev->diffopt.output_format = saved_output_format;