From f331ff59831f242d2460f823c6dba145a2176394 Mon Sep 17 00:00:00 2001 From: tobias Date: Thu, 31 Jan 2008 10:15:05 +0000 Subject: 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@ --- usr.bin/cvs/diff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/diff.c') diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index dcbf6aa5b21..7428d347a62 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.123 2008/01/29 12:00:34 tobias Exp $ */ +/* $OpenBSD: diff.c,v 1.124 2008/01/31 10:15:05 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -32,7 +32,7 @@ static char *rev1 = NULL; static char *rev2 = NULL; struct cvs_cmd cvs_cmd_diff = { - CVS_OP_DIFF, 0, "diff", + CVS_OP_DIFF, CVS_USE_WDIR, "diff", { "di", "dif" }, "Show differences between revisions", "[-cilNnpRu] [[-D date] [-r rev] [-D date2 | -r rev2]] " -- cgit v1.2.3-59-g8ed1b