summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-07-28 11:25:50 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-07-28 11:25:50 -0700
commit4966b58f3e1f295e3fb22560006b1db717b56f37 (patch)
treeaf3813c17a7bc43822bd9d7b0b6ca008eeff8789 /commit.h
parentMerge branch 'dg/subtree-rebase-test' into maint (diff)
parentreset --hard: skip blank lines when reporting the commit subject (diff)
downloadtgif-4966b58f3e1f295e3fb22560006b1db717b56f37.tar.xz
Merge branch 'js/find-commit-subject-ignore-leading-blanks' into maint
A helper function that takes the contents of a commit object and finds its subject line did not ignore leading blank lines, as is commonly done by other codepaths. Make it ignore leading blank lines to match. * js/find-commit-subject-ignore-leading-blanks: reset --hard: skip blank lines when reporting the commit subject sequencer: use skip_blank_lines() to find the commit subject commit -C: skip blank lines at the beginning of the message commit.c: make find_commit_subject() more robust pretty: make the skip_blank_lines() function public
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 0c923f05f7..adf57d6c94 100644
--- a/commit.h
+++ b/commit.h
@@ -178,6 +178,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);