[PATCH] NUL terminate diff-tree header lines under -z.
authorJunio C Hamano <junkio@cox.net>
Mon, 23 May 2005 19:07:55 +0000 (12:07 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 May 2005 19:17:09 +0000 (12:17 -0700)
commit5831b563a442e7c3198a444a51d8caba4d072506
tree770a89b014c4df5b3320e1c8bdd5a39abb719646
parent046aa6440fdf9a94df5e2f0609bef5d7415ff94a
[PATCH] NUL terminate diff-tree header lines under -z.

Thomas Glanzmann noticed that diff-tree -z HEAD piped to
diff-helper -z did not work.  Since diff-helper -z expects NUL
terminated lines, we should generate such.

The output side of the diff-helper should always be using '\n'
termination; earlier it used the same line_termination used for
the input side, which was a mistake.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff-helper.c
diff-tree.c