From c2b7617456b60be1b8ea1627fcd21fde29975f26 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 31 May 2006 07:21:26 +0000 Subject: set diff_rev2 to file_rcsrev when we are using the file we have on disk as the second thing to diff to. fixes some output issues. --- usr.bin/cvs/diff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index 48b9befe6ef..b3bfa5e67c8 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.99 2006/05/30 22:25:24 joris Exp $ */ +/* $OpenBSD: diff.c,v 1.100 2006/05/31 07:21:25 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -198,6 +198,8 @@ cvs_diff_local(struct cvs_file *cf) tv2[0].tv_sec = st.st_mtime; tv2[0].tv_usec = 0; tv2[1] = tv2[0]; + + diff_rev2 = cf->file_rcsrev; } cvs_printf("%s", diffargs); -- cgit v1.2.3