mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
dc2ba353b6
Latest upstream/feature release, similar to Debian, see the ChangeLog excerpts available at http://cto.homelinux.net/usr/ports/devel/cvs-devel/ChangeLog page. This feature release/version, I think, would be quite useful for all those users who want to share and, or transfer their existing CVS repositories from Linux to FreeBSD machines. PR: ports/118033 Submitted by: Balwinder S Dheeman <bdheeman@gmail.com>
33 lines
871 B
Plaintext
33 lines
871 B
Plaintext
# Change commit template so that there are two newlines at the
|
|
# beginning. (closes: #102624)
|
|
#
|
|
# Patch from Tollef Fog Heen <tfheen@debian.org>
|
|
diff -Nur src/logmsg.c src/logmsg.c
|
|
--- src/logmsg.c 2005-09-04 08:27:44.000000000 +0800
|
|
+++ src/logmsg.c 2006-02-26 17:57:28.000000000 +0800
|
|
@@ -264,6 +264,11 @@
|
|
}
|
|
}
|
|
|
|
+ if (!*messagep)
|
|
+ {
|
|
+ (void) fprintf (fp, "\n");
|
|
+ }
|
|
+
|
|
(void) fprintf (fp,
|
|
"%s----------------------------------------------------------------------\n",
|
|
CVSEDITPREFIX);
|
|
@@ -349,7 +354,11 @@
|
|
*messagep = NULL;
|
|
}
|
|
|
|
- if (pre_stbuf.st_mtime == post_stbuf.st_mtime || *messagep == NULL)
|
|
+ if (pre_stbuf.st_mtime == post_stbuf.st_mtime ||
|
|
+ *messagep == NULL ||
|
|
+ (*messagep)[0] == '\0' ||
|
|
+ strcmp (*messagep, "\n") == 0 ||
|
|
+ strcmp (*messagep, "\n\n") == 0)
|
|
{
|
|
for (;;)
|
|
{
|