diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2006-05-30 22:25:25 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2006-05-30 22:25:25 +0000 |
commit | 4c50e1b084dffdaa58fb93825124c7357f099e19 (patch) | |
tree | 12de3033c825b0208e45ee0ede9d25415761cc73 /usr.bin/cvs/diff.c | |
parent | 2ab42247fdb118566b19314a474b1b3635b49d28 (diff) |
fix diff -rrevision usage
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r-- | usr.bin/cvs/diff.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index 252b4990a1a..48b9befe6ef 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.98 2006/05/30 21:32:52 joris Exp $ */ +/* $OpenBSD: diff.c,v 1.99 2006/05/30 22:25:24 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -140,7 +140,8 @@ cvs_diff_local(struct cvs_file *cf) cvs_log(LP_ERR, "%s was removed, no comparison available", cf->file_path); return; - } else if (cf->file_status == FILE_UPTODATE && rev2 == NULL) { + } else if (cf->file_status == FILE_UPTODATE && rev1 == NULL && + rev2 == NULL) { return; } |