summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/annotate.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2008-01-31 10:15:05 +0000
committertobias <tobias@openbsd.org>2008-01-31 10:15:05 +0000
commitf331ff59831f242d2460f823c6dba145a2176394 (patch)
tree29af71290535d1e18c0557d32d48f188f26af532 /usr.bin/cvs/annotate.c
parentadd prefixes to names of structure elements to make it easier to grep (diff)
downloadwireguard-openbsd-f331ff59831f242d2460f823c6dba145a2176394.tar.xz
wireguard-openbsd-f331ff59831f242d2460f823c6dba145a2176394.zip
Replaced the unused cvs_command variable cmd_req with cmd_flags, which states
if the current command is supposed to use a working directory or if it is a repository-only command (as of now checkout -p, rtag, rlog). Makes the code simpler, easier to read and automagically fixes some issues we encountered with these commands (for example if a working directory exists, or "." operations are performed). OK joris@, niallo@
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-rw-r--r--usr.bin/cvs/annotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c
index 1df9b47fdf1..9d47c272ae9 100644
--- a/usr.bin/cvs/annotate.c
+++ b/usr.bin/cvs/annotate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: annotate.c,v 1.44 2008/01/28 20:31:07 tobias Exp $ */
+/* $OpenBSD: annotate.c,v 1.45 2008/01/31 10:15:05 tobias Exp $ */
/*
* Copyright (c) 2007 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -34,7 +34,7 @@ extern char *cvs_specified_tag;
static int force_head = 0;
struct cvs_cmd cvs_cmd_annotate = {
- CVS_OP_ANNOTATE, 0, "annotate",
+ CVS_OP_ANNOTATE, CVS_USE_WDIR, "annotate",
{ "ann", "blame" },
"Show last revision where each line was modified",
"[-flR] [-D date | -r rev] [file ...]",