diff options
author | 1999-09-10 05:41:45 +0000 | |
---|---|---|
committer | 1999-09-10 05:41:45 +0000 | |
commit | 872642a6f324b06e57d48f69f4b530e57e890de5 (patch) | |
tree | 84ad407d8733e0fc14d30827df91ca9e9382b34a /gnu/usr.bin/cvs/src | |
parent | Integrate local changes (diff) | |
download | wireguard-openbsd-872642a6f324b06e57d48f69f4b530e57e890de5.tar.xz wireguard-openbsd-872642a6f324b06e57d48f69f4b530e57e890de5.zip |
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/src')
-rw-r--r-- | gnu/usr.bin/cvs/src/main.c | 7 |
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 |