summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-07-10 13:53:51 +0000
committerxsa <xsa@openbsd.org>2005-07-10 13:53:51 +0000
commitb87c59bd45eab9a75b7770e4bb0e0639adc28d28 (patch)
treeddf2c6736a99928e5f71501718b76bf262cb64f5 /usr.bin/cvs/diff.c
parentAdd ubt(4), p/o by jmc@. (diff)
downloadwireguard-openbsd-b87c59bd45eab9a75b7770e4bb0e0639adc28d28.tar.xz
wireguard-openbsd-b87c59bd45eab9a75b7770e4bb0e0639adc28d28.zip
only display info msg if -q is not specified;
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c7
1 files changed, 5 insertions, 2 deletions
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);
}