combine-diff: Fix path quoting
commit462a15bc82e6adbcb8db5fcc4791ec70a026aa4b
authorJunio C Hamano <gitster@pobox.com>
Thu, 27 Dec 2007 00:51:19 +0000 (26 16:51 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Dec 2007 00:51:19 +0000 (26 16:51 -0800)
tree548e2bfd2abb192de3de49d038dd6a38cc4720b2
parent25db465a34ab6fe840011e5d746701186e9e9884
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>
combine-diff.c