From b87c59bd45eab9a75b7770e4bb0e0639adc28d28 Mon Sep 17 00:00:00 2001 From: xsa Date: Sun, 10 Jul 2005 13:53:51 +0000 Subject: only display info msg if -q is not specified; --- usr.bin/cvs/diff.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/diff.c') diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index 82f38d29eb0..d86c9275a08 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.45 2005/07/09 18:56:16 niallo Exp $ */ +/* $OpenBSD: diff.c,v 1.46 2005/07/10 13:53:51 xsa Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. @@ -205,6 +205,8 @@ struct diff_arg { char *date2; }; +extern int verbosity; + static int cvs_diff_init (struct cvs_cmd *, int, char **, int *); static int cvs_diff_remote (CVSFILE *, void *); @@ -596,7 +598,8 @@ cvs_diff_local(CVSFILE *cf, void *arg) diff_file = cvs_file_getpath(cf, fpath, sizeof(fpath)); if (cf->cf_type == DT_DIR) { - cvs_log(LP_INFO, "Diffing %s", fpath); + if (verbosity > 1) + cvs_log(LP_INFO, "Diffing %s", fpath); return (0); } -- cgit v1.2.3-59-g8ed1b