diff options
Diffstat (limited to 'usr.bin/rcs/rcsdiff.c')
-rw-r--r-- | usr.bin/rcs/rcsdiff.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index b40082dba7f..8604e937d43 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.18 2005/11/22 15:00:06 xsa Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.19 2005/11/23 09:39:20 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -45,18 +45,19 @@ static int kflag = RCS_KWEXP_ERR; int rcsdiff_main(int argc, char **argv) { - int i, ch, status; + int i, ch, flags, status; RCSNUM *rev, *rev2, *frev; RCSFILE *file; char fpath[MAXPATHLEN]; + flags = 0; rev = RCS_HEAD_REV; rev2 = NULL; status = 0; strlcpy(diffargs, "diff", sizeof(diffargs)); - while ((ch = rcs_getopt(argc, argv, "ck:nqr:uVx:")) != -1) { + while ((ch = rcs_getopt(argc, argv, "ck:nqr:TuVx:")) != -1) { switch (ch) { case 'c': strlcat(diffargs, " -c", sizeof(diffargs)); @@ -95,6 +96,9 @@ rcsdiff_main(int argc, char **argv) } } break; + case 'T': + flags |= PRESERVETIME; + break; case 'V': printf("%s\n", rcs_version); exit(0); |