From 40b6e255289a891f15f86d47836b1c09d8ac1c85 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Fri, 8 Jul 2005 12:45:11 +0000 Subject: handle -Q correctly; Ok joris@. --- usr.bin/cvs/status.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'usr.bin/cvs/status.c') 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 * 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); -- cgit v1.2.3