summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsdiff.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-11-21 16:20:30 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-11-21 16:20:30 +0000
commit24ae1eb837a8bb677dd453e04d69f366f2a990f3 (patch)
tree824fb3a3918b5a9f0248786948eb7797ba308d14 /usr.bin/rcs/rcsdiff.c
parent0d73ecfdaec0cb177f249635d82d7db9568a689c (diff)
enable `-xsuffixes' support as it has been added a few days ago
in rcs_statfile(); niallo ok
Diffstat (limited to 'usr.bin/rcs/rcsdiff.c')
-rw-r--r--usr.bin/rcs/rcsdiff.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c
index 9c808935f66..b0890fcd5c1 100644
--- a/usr.bin/rcs/rcsdiff.c
+++ b/usr.bin/rcs/rcsdiff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsdiff.c,v 1.16 2005/11/21 15:01:10 xsa Exp $ */
+/* $OpenBSD: rcsdiff.c,v 1.17 2005/11/21 16:20:29 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -54,7 +54,7 @@ rcsdiff_main(int argc, char **argv)
strlcpy(diffargs, "diff", sizeof(diffargs));
- while ((ch = rcs_getopt(argc, argv, "cnqr:uV")) != -1) {
+ while ((ch = rcs_getopt(argc, argv, "cnqr:uVx:")) != -1) {
switch (ch) {
case 'c':
strlcat(diffargs, " -c", sizeof(diffargs));
@@ -71,9 +71,6 @@ rcsdiff_main(int argc, char **argv)
strlcat(diffargs, " -u", sizeof(diffargs));
diff_format = D_UNIFIED;
break;
- case 'V':
- printf("%s\n", rcs_version);
- exit(0);
case 'r':
if (rev == RCS_HEAD_REV) {
if ((rev = rcsnum_parse(rcs_optarg)) == NULL) {
@@ -87,6 +84,12 @@ rcsdiff_main(int argc, char **argv)
}
}
break;
+ case 'V':
+ printf("%s\n", rcs_version);
+ exit(0);
+ case 'x':
+ rcs_suffixes = rcs_optarg;
+ break;
default:
(usage)();
exit (1);