]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'js/find-commit-subject-ignore-leading-blanks'
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 Jul 2016 17:31:07 +0000 (10:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jul 2016 17:31:08 +0000 (10:31 -0700)
commit62e5e83f8dfc98e182a1ca3a48b2c69f4fd417ce
treef25182845eb0c18d21f5454f34cfe0d0c1c540f4
parent493ddea54d32cea8e99029a21d16cfdd164d31fd
parent054a5aee6f3e8e90d96f7b3f76f5f55752561c59
Merge branch 'js/find-commit-subject-ignore-leading-blanks'

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
builtin/commit.c
builtin/reset.c
commit.c
commit.h
pretty.c
sequencer.c