diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-03-17 13:09:27 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-03-17 13:09:27 +0000 |
commit | 6a057bae05c6ce0405bde047dc35a2d059a1d692 (patch) | |
tree | 2edcb9875ecd246863f6ac33a9d27dadbeca076b | |
parent | 1d7c6e7c5f6760a189fad2b1f9626ce50f189623 (diff) |
- co usage() says we support -I, so set the flags and revision.
ok xsa@
-rw-r--r-- | usr.bin/rcs/co.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c index 0d00aa31ba1..12282fa4ed8 100644 --- a/usr.bin/rcs/co.c +++ b/usr.bin/rcs/co.c @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.64 2006/03/16 23:53:27 niallo Exp $ */ +/* $OpenBSD: co.c,v 1.65 2006/03/17 13:09:26 niallo Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -28,7 +28,7 @@ #include "rcsprog.h" -#define CO_OPTSTRING "d:f::k:l::M::p::q::r::s:Tu::Vw::x:z:" +#define CO_OPTSTRING "d:f::I::k:l::M::p::q::r::s:Tu::Vw::x:z:" static void checkout_err_nobranch(RCSFILE *, const char *, const char *, const char *, int); @@ -61,6 +61,11 @@ checkout_main(int argc, char **argv) rcs_set_rev(rcs_optarg, &rev); flags |= FORCE; break; + case 'I': + rcs_set_rev(rcs_optarg, &rev); + flags |= INTERACTIVE; + break; + case 'k': kflag = rcs_kflag_get(rcs_optarg); if (RCS_KWEXP_INVAL(kflag)) { |