summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/status.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-07-08 12:45:11 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-07-08 12:45:11 +0000
commit40b6e255289a891f15f86d47836b1c09d8ac1c85 (patch)
treeeb8ef0a6481d1bc8a46d3fa40bff274407508273 /usr.bin/cvs/status.c
parent961f7db5837e64f4bfffce9bf5f6225d221fee71 (diff)
handle -Q correctly; Ok joris@.
Diffstat (limited to 'usr.bin/cvs/status.c')
-rw-r--r--usr.bin/cvs/status.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c
index 0e620e5e41d..a37f545c8e7 100644
--- a/usr.bin/cvs/status.c
+++ b/usr.bin/cvs/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.37 2005/07/08 11:46:23 xsa Exp $ */
+/* $OpenBSD: status.c,v 1.38 2005/07/08 12:45:10 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -273,11 +273,19 @@ cvs_status_local(CVSFILE *cf, void *arg)
return (0);
}
- cvs_printf(" Sticky Tag:\t\t%s\n",
- cf->cf_tag == NULL ? "(none)" : cf->cf_tag);
- cvs_printf(" Sticky Date:\t\t%s\n", "(none)");
- cvs_printf(" Sticky Options:\t%s\n",
- cf->cf_opts == NULL ? "(none)" : cf->cf_opts);
+ if (cf->cf_tag != NULL)
+ cvs_printf(" Sticky Tag:\t\t%s\n", cf->cf_tag);
+ else if (verbosity > 0)
+ cvs_printf(" Sticky Tag:\t\t(none)\n");
+
+ /* XXX */
+ if (verbosity > 0)
+ cvs_printf(" Sticky Date:\t\t%s\n", "(none)");
+
+ if (cf->cf_opts != NULL)
+ cvs_printf(" Sticky Options:\t%s\n", cf->cf_opts);
+ else if (verbosity > 0)
+ cvs_printf(" Sticky Options:\t(none)\n");
cvs_printf("\n");
rcs_close(rf);