summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1999-09-10 05:41:46 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1999-09-10 05:41:46 +0000
commita9bd17e2fe99b1703329a2d2d2e63cee7a1b5748 (patch)
treef9888efe03f24b9edd48941f6004cfb0b632ad79 /gnu/usr.bin/cvs
parent266781f9b0960e70692e00339adb15dbb50d8071 (diff)
Add option to set the repository to read-only on the command line; from
Artur Grabowski <art@stacken.kth.se>
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r--gnu/usr.bin/cvs/src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c
index 4d75df46a80..8e18b907b2f 100644
--- a/gnu/usr.bin/cvs/src/main.c
+++ b/gnu/usr.bin/cvs/src/main.c
@@ -233,6 +233,7 @@ static const char *const opt_usage[] =
" -n Do not execute anything that will change the disk.\n",
" -t Show trace of program execution -- try with -n.\n",
" -v CVS version and copyright.\n",
+ " -R Read-only repository.\n",
" -T tmpdir Use 'tmpdir' for temporary files.\n",
" -e editor Use 'editor' for editing log information.\n",
" -d CVS_root Overrides $CVSROOT as the root of the CVS tree.\n",
@@ -515,7 +516,7 @@ main (argc, argv)
opterr = 1;
while ((c = getopt_long
- (argc, argv, "+Qqrwtnlvb:T:e:d:Hfz:s:xa", long_options, &option_index))
+ (argc, argv, "+Qqrwtnlvb:T:e:d:Hfz:s:xaR", long_options, &option_index))
!= EOF)
{
switch (c)
@@ -556,6 +557,10 @@ main (argc, argv)
case 'l': /* Fall through */
logoff = 1;
break;
+ case 'R':
+ logoff = 1;
+ readonlyfs = 1;
+ break;
case 'v':
/* Having the year here is a good idea, so people have
some idea of how long ago their version of CVS was