author | Stephen Boyd <bebarino@gmail.com> | |
Mon, 23 Mar 2009 02:14:01 +0000 (19:14 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 23 Mar 2009 04:32:13 +0000 (21:32 -0700) | ||
commit | 46d164b0cd1d5d254047d7573c53e368e42bf5e5 | |
tree | c382d4a26b5c3c33712063fe4545cc31aa8591e4 | tree | snapshot |
parent | 636991be2d2ce8368cd6735473954b1ebfa989bf | commit | diff |
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>
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 | diff | blob | history | |
pretty.c | diff | blob | history |