summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2006-06-06 05:18:23 +0000
committerjoris <joris@openbsd.org>2006-06-06 05:18:23 +0000
commitb2fef78a7279392608c9a02a5c5f385dea6c1b39 (patch)
tree5adc56e3bff7fb8fd1ae561a84a5a6e903121eae /usr.bin/cvs/commit.c
parentadd support for the -D option of update, (diff)
downloadwireguard-openbsd-b2fef78a7279392608c9a02a5c5f385dea6c1b39.tar.xz
wireguard-openbsd-b2fef78a7279392608c9a02a5c5f385dea6c1b39.zip
hello commit -F support
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index b4b33f4ca34..49444eae5b8 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.69 2006/06/04 09:52:56 joris Exp $ */
+/* $OpenBSD: commit.c,v 1.70 2006/06/06 05:18:23 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -46,6 +46,7 @@ int
cvs_commit(int argc, char **argv)
{
int ch;
+ BUF *bp;
char *arg = ".";
int flags;
struct cvs_recursion cr;
@@ -57,6 +58,12 @@ cvs_commit(int argc, char **argv)
case 'f':
break;
case 'F':
+ bp = cvs_buf_load(optarg, BUF_AUTOEXT);
+ if (bp == NULL)
+ fatal("failed to load commit message %s",
+ optarg);
+ cvs_buf_putc(bp, '\0');
+ logmsg = cvs_buf_release(bp);
break;
case 'l':
flags &= ~CR_RECURSE_DIRS;