author | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Dec 2007 00:51:19 +0000 (16:51 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Dec 2007 00:51:19 +0000 (16:51 -0800) | ||
commit | 462a15bc82e6adbcb8db5fcc4791ec70a026aa4b | |
tree | 548e2bfd2abb192de3de49d038dd6a38cc4720b2 | tree | snapshot |
parent | 25db465a34ab6fe840011e5d746701186e9e9884 | commit | diff |
combine-diff: Fix path quoting
Earlier when showing combined diff, the filenames on the ---/+++
header lines were quoted incorrectly. a/ (or b/) prefix was
output literally and then the path was output, with c-quoting.
This fixes the quoting logic, and while at it, adjusts the code
to use the customizable prefix (a_prefix and b_prefix)
introduced recently.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Earlier when showing combined diff, the filenames on the ---/+++
header lines were quoted incorrectly. a/ (or b/) prefix was
output literally and then the path was output, with c-quoting.
This fixes the quoting logic, and while at it, adjusts the code
to use the customizable prefix (a_prefix and b_prefix)
introduced recently.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
combine-diff.c | diff | blob | history |