summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.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/ci.c
parentf0b99874bcc46c2cd20298d03ab79b8024bbba3f (diff)
initial bits for -T support;
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r--usr.bin/rcs/ci.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 6136c0077f0..ed1f8d7780e 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.66 2005/11/22 11:49:02 niallo Exp $ */
+/* $OpenBSD: ci.c,v 1.67 2005/11/23 09:39:20 xsa Exp $ */
/*
* Copyright (c) 2005 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -44,7 +44,7 @@
#include "diff.h"
#include "rcsprog.h"
-#define CI_OPTSTRING "d::f::i::j::k:l::m:M::N:n:qr::s:u::Vw:x:"
+#define CI_OPTSTRING "d::f::i::j::k:l::m:M::N:n:qr::s:Tu::Vw:x:"
#define DATE_NOW -1
#define DATE_MTIME -2
@@ -81,7 +81,7 @@ void
checkin_usage(void)
{
fprintf(stderr,
- "usage: ci [-MNqV] [-d[date]] [-f[rev]] [-i[rev]] [-j[rev]]\n"
+ "usage: ci [-MNqTV] [-d[date]] [-f[rev]] [-i[rev]] [-j[rev]]\n"
" [-kmode] [-l[rev]] [-M[rev]] [-mmsg] [-Nsymbol]\n"
" [-nsymbol] [-r[rev]] [-sstate] [-u[rev]] [-wusername]\n"
" file ...\n");
@@ -193,6 +193,9 @@ checkin_main(int argc, char **argv)
exit(1);
}
break;
+ case 'T':
+ pb.flags |= PRESERVETIME;
+ break;
case 'u':
rcs_set_rev(rcs_optarg, &pb.newrev);
pb.flags |= CO_UNLOCK;