diff options
| author | 2008-01-31 10:15:05 +0000 | |
|---|---|---|
| committer | 2008-01-31 10:15:05 +0000 | |
| commit | f331ff59831f242d2460f823c6dba145a2176394 (patch) | |
| tree | 29af71290535d1e18c0557d32d48f188f26af532 /usr.bin/cvs/commit.c | |
| parent | add prefixes to names of structure elements to make it easier to grep (diff) | |
| download | wireguard-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/commit.c')
| -rw-r--r-- | usr.bin/cvs/commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index cd1bf4c223d..bf3ed54f7d4 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.123 2008/01/29 11:58:59 tobias Exp $ */ +/* $OpenBSD: commit.c,v 1.124 2008/01/31 10:15:05 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -42,7 +42,7 @@ int conflicts_found; char *logmsg = NULL; struct cvs_cmd cvs_cmd_commit = { - CVS_OP_COMMIT, 0, "commit", + CVS_OP_COMMIT, CVS_USE_WDIR, "commit", { "ci", "com" }, "Check files into the repository", "[-flR] [-F logfile | -m msg] [-r rev] ...", |
