summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-11-23 09:39:21 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-11-23 09:39:21 +0000
commitfbeac4e8ea17ba34c44c52f9dadf2d8b450ec371 (patch)
treed4c2b5f1becc6d98327ff6ceac754ec27727cc18 /usr.bin/rcs/rcsprog.c
parentf0b99874bcc46c2cd20298d03ab79b8024bbba3f (diff)
initial bits for -T support;
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r--usr.bin/rcs/rcsprog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index 5ba59109386..d3c261a5fdc 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.45 2005/11/21 16:20:29 xsa Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.46 2005/11/23 09:39:20 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -336,7 +336,7 @@ rcs_main(int argc, char **argv)
flags = RCS_RDWR;
logstr = alist = comment = elist = NULL;
- while ((ch = rcs_getopt(argc, argv, "A:a:b::c:e::hik:Lm:MqUV")) != -1) {
+ while ((ch = rcs_getopt(argc, argv, "A:a:b::c:e::hik:Lm:MqTUV")) != -1) {
switch (ch) {
case 'A':
if (rcs_statfile(rcs_optarg, ofpath, sizeof(ofpath)) < 0)
@@ -384,6 +384,9 @@ rcs_main(int argc, char **argv)
case 'q':
verbose = 0;
break;
+ case 'T':
+ flags |= PRESERVETIME;
+ break;
case 'U':
if (lkmode == RCS_LOCK_STRICT)
cvs_log(LP_WARN, "-L overriden by -U");