diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-06-22 22:20:16 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-22 13:23:56 -0700 |
commit | 77356122443039b4b65a7795d66b3d1fdeedcce8 (patch) | |
tree | 103dea05a387fe15c1851aa2edebb2bc67087a33 /commit.h | |
parent | 765428699a5381f113d19974720bc91b5bfeaf1d (diff) | |
download | git-77356122443039b4b65a7795d66b3d1fdeedcce8.tar.gz |
pretty: make the skip_blank_lines() function public
This function will be used also in the find_commit_subject()
function.
While at it, rename the function to reflect that it skips not only
empty lines, but any lines consisting of only whitespace, too.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -176,6 +176,7 @@ extern const char *format_subject(struct strbuf *sb, const char *msg, const char *line_separator); extern void userformat_find_requirements(const char *fmt, struct userformat_want *w); extern int commit_format_is_empty(enum cmit_fmt); +extern const char *skip_blank_lines(const char *msg); extern void format_commit_message(const struct commit *commit, const char *format, struct strbuf *sb, const struct pretty_print_context *context); |