diff: add diff_line_prefix function
commitf192223447746a503bf664135a0e537d15876ebe
authorJohn Keeping <john@keeping.me.uk>
Thu, 7 Feb 2013 20:15:26 +0000 (7 20:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2013 19:42:07 +0000 (12 11:42 -0800)
treeb8dc638c95c4e2b289f899cbad1d7e1a0323dd26
parent32b367e4441f8566f200459149d1aaee8fafc867
diff: add diff_line_prefix function

This is a helper function to call the diff output_prefix function and
return its value as a C string, allowing us to greatly simplify
everywhere that needs to get the output prefix.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
diff.h