diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-31 10:15:06 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-31 10:15:06 +0000 |
commit | c9627e39af420c1876b74e97d6e0d257395aaed1 (patch) | |
tree | 139b27acc652675035297a52ae05ea9fe1b4d5f8 /usr.bin/cvs/add.c | |
parent | 0548783dd32716f5c917173e44b9dd2e9ea6cd56 (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/add.c')
-rw-r--r-- | usr.bin/cvs/add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c index e715945ff12..18b0fd68b87 100644 --- a/usr.bin/cvs/add.c +++ b/usr.bin/cvs/add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: add.c,v 1.87 2008/01/29 12:22:59 tobias Exp $ */ +/* $OpenBSD: add.c,v 1.88 2008/01/31 10:15:05 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -41,7 +41,7 @@ static char kbuf[8], *koptstr; char *logmsg; struct cvs_cmd cvs_cmd_add = { - CVS_OP_ADD, 0, "add", + CVS_OP_ADD, CVS_USE_WDIR, "add", { "ad", "new" }, "Add a new file or directory to the repository", "[-k mode] [-m message] ...", |