* clcommit.m4sh: When searching for accidental commits of mutliple
changes, ignore the second line of the message, which we inserted
earlier to support "git log --oneline".
2010-06-09 Gary V. Vaughan <gary@gnu.org>
+ Don't warn about the blank line inserted into git commit message.
+ * clcommit.m4sh: When searching for accidental commits of mutliple
+ changes, ignore the second line of the message, which we inserted
+ earlier to support "git log --oneline".
+
Enable correct extraction of multiline copyright from --version.
* libltdl/config/getopt.m4sh: Wrap copyright notice at 76
columns.
grep '[^ ]' < "$log_file" > /dev/null ||
func_fatal_error "empty commit message, aborting"
- if grep '^$' < "$log_file" > /dev/null; then
+ # We expect line 2 to be blank, since it separates the git summary line from
+ # the commit message body, but any others are probably an error:
+ if sed 2d "$log_file" | grep '^$' > /dev/null; then
func_error "*** Warning: blank lines should not appear within commit messages."
func_error "*** They should be used to separate distinct commits."
fi