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/history.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/history.c')
-rw-r--r-- | usr.bin/cvs/history.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/history.c b/usr.bin/cvs/history.c index c7fea5a6af8..f1cd4d99ae7 100644 --- a/usr.bin/cvs/history.c +++ b/usr.bin/cvs/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.34 2007/09/10 10:56:37 tobias Exp $ */ +/* $OpenBSD: history.c,v 1.35 2008/01/31 10:15:05 tobias Exp $ */ /* * Copyright (c) 2007 Joris Vink <joris@openbsd.org> * @@ -30,7 +30,7 @@ void cvs_history_local(struct cvs_file *); struct cvs_cmd cvs_cmd_history = { - CVS_OP_HISTORY, 0, "history", + CVS_OP_HISTORY, CVS_USE_WDIR, "history", { "hi", "his" }, /* omghi2you */ "Display history of actions done in the base repository", "[-ac]", |