summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/repository.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-02-03 22:50:29 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-02-03 22:50:29 +0000
commit35e0ce366c7fa544c774ac9bb008496383a3746c (patch)
tree377df7d3de4741e66a75f0c9c0ee0b342cceca07 /usr.bin/cvs/repository.c
parent3632b404f6998f60f7e3c9114c9cef64d325ddab (diff)
more CVSROOT/module stuff:
- allow more then 1 module to be specified per definition - respect the "!" sign which means: "hey ignore this dir when checking out" - non alias definitions can now contain files ok tobias@
Diffstat (limited to 'usr.bin/cvs/repository.c')
-rw-r--r--usr.bin/cvs/repository.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/repository.c b/usr.bin/cvs/repository.c
index 4ef127ee509..9d2c8d2033f 100644
--- a/usr.bin/cvs/repository.c
+++ b/usr.bin/cvs/repository.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: repository.c,v 1.17 2008/01/31 13:54:12 tobias Exp $ */
+/* $OpenBSD: repository.c,v 1.18 2008/02/03 22:50:28 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -107,6 +107,11 @@ cvs_repository_getdir(const char *dir, const char *wdir,
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", wdir, dp->d_name);
(void)xsnprintf(rpath, MAXPATHLEN, "%s/%s", dir, dp->d_name);
+ if (!TAILQ_EMPTY(&checkout_ign_pats)) {
+ if (cvs_file_chkign(fpath))
+ continue;
+ }
+
/*
* nfs and afs will show d_type as DT_UNKNOWN
* for files and/or directories so when we encounter