summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-12-31 15:11:24 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-12-31 15:11:24 +0000
commita20b18804133a6af61353c035ec289e49997bf0a (patch)
tree7e8a2da9a5c21f5c22905e0929ed7e9db693c288
parent6de76f745ab68a6b60da937911f01c0c9094cb4c (diff)
minor nits;
-rw-r--r--usr.bin/cvs/commit.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index c6889018060..1ae744eb597 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.81 2006/07/08 09:25:44 ray Exp $ */
+/* $OpenBSD: commit.c,v 1.82 2006/12/31 15:11:23 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -56,26 +56,25 @@ cvs_commit(int argc, char **argv)
while ((ch = getopt(argc, argv, cvs_cmd_commit.cmd_opts)) != -1) {
switch (ch) {
- case 'f':
- break;
case 'F':
bp = cvs_buf_load(optarg, BUF_AUTOEXT);
if (bp == NULL)
- fatal("failed to load commit message %s",
- optarg);
+ fatal("failed to load commit message %s", optarg);
cvs_buf_putc(bp, '\0');
logmsg = cvs_buf_release(bp);
break;
+ case 'f':
+ break;
case 'l':
flags &= ~CR_RECURSE_DIRS;
break;
case 'm':
logmsg = xstrdup(optarg);
break;
- case 'r':
- break;
case 'R':
break;
+ case 'r':
+ break;
default:
fatal("%s", cvs_cmd_commit.cmd_synopsis);
}
@@ -84,6 +83,7 @@ cvs_commit(int argc, char **argv)
argc -= optind;
argv += optind;
+ /* XXX */
if (logmsg == NULL)
fatal("please use -m or -F to specify a log message for now");