summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniallo <niallo@openbsd.org>2005-11-03 15:40:40 +0000
committerniallo <niallo@openbsd.org>2005-11-03 15:40:40 +0000
commit42c920d55179c49db3704b8ee59eb28f56118b82 (patch)
tree5d2d3ab6a870f39930c7db7eded01b625a9279c7
parentCache reverse lookups with and without DNS separately; ok markus@ (diff)
downloadwireguard-openbsd-42c920d55179c49db3704b8ee59eb28f56118b82.tar.xz
wireguard-openbsd-42c920d55179c49db3704b8ee59eb28f56118b82.zip
- implement `-M' option.
-rw-r--r--usr.bin/rcs/co.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index 059a85660dc..657ecc6403b 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.25 2005/11/02 20:44:50 niallo Exp $ */
+/* $OpenBSD: co.c,v 1.26 2005/11/03 15:40:40 niallo Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -59,7 +59,7 @@ checkout_main(int argc, char **argv)
exit (1);
}
- while ((ch = rcs_getopt(argc, argv, "f::l::p::qr::s:u::V")) != -1) {
+ while ((ch = rcs_getopt(argc, argv, "f::l::M::p::qr::s:u::V")) != -1) {
switch (ch) {
case 'f':
rcs_set_rev(rcs_optarg, &rev);
@@ -69,6 +69,10 @@ checkout_main(int argc, char **argv)
rcs_set_rev(rcs_optarg, &rev);
flags |= CO_LOCK;
break;
+ case 'M':
+ rcs_set_rev(rcs_optarg, &rev);
+ flags |= CO_REVDATE;
+ break;
case 'p':
rcs_set_rev(rcs_optarg, &rev);
pipeout = 1;