pretty.c: add %f format specifier to format_commit_message()
commit46d164b0cd1d5d254047d7573c53e368e42bf5e5
authorStephen Boyd <bebarino@gmail.com>
Mon, 23 Mar 2009 02:14:01 +0000 (22 19:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2009 04:32:13 +0000 (22 21:32 -0700)
treec382d4a26b5c3c33712063fe4545cc31aa8591e4
parent636991be2d2ce8368cd6735473954b1ebfa989bf
pretty.c: add %f format specifier to format_commit_message()

This specifier represents the sanitized and filename friendly subject
line of a commit. No checks are made against the length of the string,
so users may need to trim the result to the desired length if using as a
filename. This is commonly used by format-patch to massage commit
subjects into filenames and output patches to files.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
pretty.c