1 # Change commit template so that there are two newlines at the
2 # beginning. (closes: #102624)
4 # Patch from Tollef Fog Heen <tfheen@debian.org>
5 diff -ruN cvs-1.12.13-old/src/logmsg.c cvs-1.12.13/src/logmsg.c
6 --- cvs-1.12.13-old/src/logmsg.c 2005-09-04 08:27:44.000000000 +0800
7 +++ cvs-1.12.13/src/logmsg.c 2006-02-26 17:57:28.000000000 +0800
14 + (void) fprintf (fp, "\n");
18 "%s----------------------------------------------------------------------\n",
24 - if (pre_stbuf.st_mtime == post_stbuf.st_mtime || *messagep == NULL)
25 + if (pre_stbuf.st_mtime == post_stbuf.st_mtime ||
26 + *messagep == NULL ||
27 + (*messagep)[0] == '\0' ||
28 + strcmp (*messagep, "\n") == 0 ||
29 + strcmp (*messagep, "\n\n") == 0)