]>
Commit | Line | Data |
---|---|---|
76652ff6 AM |
1 | --- cvs-1.12.13.orig/debian/patches/51_newlines_in_commit_template |
2 | +++ cvs-1.12.13/debian/patches/51_newlines_in_commit_template | |
3 | @@ -0,0 +1,32 @@ | |
4 | +# Change commit template so that there are two newlines at the | |
5 | +# beginning. (closes: #102624) | |
6 | +# | |
7 | +# Patch from Tollef Fog Heen <tfheen@debian.org> | |
8 | +diff -ruN cvs-1.12.13-old/src/logmsg.c cvs-1.12.13/src/logmsg.c | |
9 | +--- cvs-1.12.13-old/src/logmsg.c 2005-09-04 08:27:44.000000000 +0800 | |
10 | ++++ cvs-1.12.13/src/logmsg.c 2006-02-26 17:57:28.000000000 +0800 | |
11 | +@@ -264,6 +264,11 @@ | |
12 | + } | |
13 | + } | |
14 | + | |
15 | ++ if (!*messagep) | |
16 | ++ { | |
17 | ++ (void) fprintf (fp, "\n"); | |
18 | ++ } | |
19 | ++ | |
20 | + (void) fprintf (fp, | |
21 | + "%s----------------------------------------------------------------------\n", | |
22 | + CVSEDITPREFIX); | |
23 | +@@ -349,7 +354,11 @@ | |
24 | + *messagep = NULL; | |
25 | + } | |
26 | + | |
27 | +- if (pre_stbuf.st_mtime == post_stbuf.st_mtime || *messagep == NULL) | |
28 | ++ if (pre_stbuf.st_mtime == post_stbuf.st_mtime || | |
29 | ++ *messagep == NULL || | |
30 | ++ (*messagep)[0] == '\0' || | |
31 | ++ strcmp (*messagep, "\n") == 0 || | |
32 | ++ strcmp (*messagep, "\n\n") == 0) | |
33 | + { | |
34 | + for (;;) | |
35 | + { |