summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/add.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-03-08 20:26:35 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-03-08 20:26:35 +0000
commitf180fa31bef240be9e356681d7f12aa11cec5f8b (patch)
treec184dbcda05d69b8cb1bfed5886e59067766b1cc /usr.bin/cvs/add.c
parent22b225cb417a08d1f3be81c45427e2232d860a85 (diff)
add checkout/update -j support.
still has some rough edges.
Diffstat (limited to 'usr.bin/cvs/add.c')
-rw-r--r--usr.bin/cvs/add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c
index 047ceca978b..6bc9063a1bb 100644
--- a/usr.bin/cvs/add.c
+++ b/usr.bin/cvs/add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: add.c,v 1.95 2008/03/01 21:29:36 deraadt Exp $ */
+/* $OpenBSD: add.c,v 1.96 2008/03/08 20:26:34 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -27,7 +27,6 @@
extern char *__progname;
-void cvs_add_local(struct cvs_file *);
void cvs_add_entry(struct cvs_file *);
void cvs_add_remote(struct cvs_file *);
@@ -145,7 +144,8 @@ cvs_add_local(struct cvs_file *cf)
{
cvs_log(LP_TRACE, "cvs_add_local(%s)", cf->file_path);
- cvs_file_classify(cf, cvs_directory_tag);
+ if (cvs_cmdop != CVS_OP_CHECKOUT && cvs_cmdop != CVS_OP_UPDATE)
+ cvs_file_classify(cf, cvs_directory_tag);
/* dont use `cvs add *' */
if (strcmp(cf->file_name, ".") == 0 ||