]>
Commit | Line | Data |
---|---|---|
3a862a5e AM |
1 | # Change commit template so that there are two newlines at the |
2 | # beginning. (closes: #102624) | |
3 | # | |
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 | |
8 | @@ -264,6 +264,11 @@ | |
9 | } | |
10 | } | |
11 | ||
12 | + if (!*messagep) | |
13 | + { | |
14 | + (void) fprintf (fp, "\n"); | |
15 | + } | |
16 | + | |
17 | (void) fprintf (fp, | |
18 | "%s----------------------------------------------------------------------\n", | |
19 | CVSEDITPREFIX); | |
20 | @@ -349,7 +354,11 @@ | |
21 | *messagep = NULL; | |
22 | } | |
23 | ||
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) | |
30 | { | |
31 | for (;;) | |
32 | { |