diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2006-06-06 05:18:24 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2006-06-06 05:18:24 +0000 |
commit | 43ac589082bbd1e89a5fd539e308e4807236472e (patch) | |
tree | a74a4bbaefeda9bf8b6ce76b2a9550ac8389a174 | |
parent | 986c1709bd454c556f1d617141a8bc630c0e1d11 (diff) |
hello commit -F support
-rw-r--r-- | usr.bin/cvs/commit.c | 9 |
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; |