summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/update.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-31 10:15:06 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-31 10:15:06 +0000
commitc9627e39af420c1876b74e97d6e0d257395aaed1 (patch)
tree139b27acc652675035297a52ae05ea9fe1b4d5f8 /usr.bin/cvs/update.c
parent0548783dd32716f5c917173e44b9dd2e9ea6cd56 (diff)
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/update.c')
-rw-r--r--usr.bin/cvs/update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index f510e58d61d..4a937f16901 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.115 2008/01/28 20:31:07 tobias Exp $ */
+/* $OpenBSD: update.c,v 1.116 2008/01/31 10:15:05 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -35,7 +35,7 @@ char *cvs_specified_tag = NULL;
static void update_clear_conflict(struct cvs_file *);
struct cvs_cmd cvs_cmd_update = {
- CVS_OP_UPDATE, 0, "update",
+ CVS_OP_UPDATE, CVS_USE_WDIR, "update",
{ "up", "upd" },
"Bring work tree in sync with repository",
"[-ACdflPpR] [-D date | -r rev] [-I ign] [-j rev] [-k mode] "