author | Junio C Hamano <junkio@cox.net> | |
Mon, 23 May 2005 19:07:55 +0000 (12:07 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 23 May 2005 19:17:09 +0000 (12:17 -0700) | ||
commit | 5831b563a442e7c3198a444a51d8caba4d072506 | |
tree | 770a89b014c4df5b3320e1c8bdd5a39abb719646 | tree | snapshot |
parent | 046aa6440fdf9a94df5e2f0609bef5d7415ff94a | commit | diff |
[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>
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 | blob | history | |
diff-tree.c | diff | blob | history |