git-blame --porcelain: quote filename in c-style when needed.
authorJunio C Hamano <junkio@cox.net>
Sun, 28 Jan 2007 09:42:31 +0000 (01:42 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 28 Jan 2007 10:04:48 +0000 (02:04 -0800)
commit46e5e69d5f2e8ae87a29953531a3d1bd7cb0292f
tree878bf8410b8c1142c37b2a8133f73330c55ed8e7
parent717d1462ba0ebc430775eccaae65eb9b8234eb32
git-blame --porcelain: quote filename in c-style when needed.

Otherwise a pathname that has funny characters such as LF would
screw up the parsing programs of the output.

Strictly speaking, this is not backward compatible, but the
current output for pathnames that have embedded LF and such
cannot be sanely parsed anyway, and pathnames that only use
characters from the portable pathname character set won't be
affected.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-blame.c