summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-06 13:01:11 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-06 13:01:11 +0000
commitdfbf55fea93bd266600a2c325117688eb6d26a56 (patch)
tree51248f3917debe281728fc4a8b4b52b2c8b50561 /usr.bin
parent6c1be8b130d21514db574383672fd9d67bf010fe (diff)
Have one global hierarchy of files that are being affected. This will
allow us to build the tree in memory as well as on disk for operations such as checkout and update. It will also allow us to write all Entries in a single disk write and to avoid creating empty directories on updates when pruning is requested
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/cvs.c7
-rw-r--r--usr.bin/cvs/cvs.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c
index fc0d2a3255c..b13f0aa52c1 100644
--- a/usr.bin/cvs/cvs.c
+++ b/usr.bin/cvs/cvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.c,v 1.9 2004/07/30 23:13:24 jfb Exp $ */
+/* $OpenBSD: cvs.c,v 1.10 2004/08/06 13:01:09 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -64,6 +64,11 @@ char *cvs_rsh = CVS_RSH_DEFAULT;
char *cvs_editor = CVS_EDITOR_DEFAULT;
+/* hierarchy of all the files affected by the command */
+CVSFILE *cvs_files;
+
+
+
/*
* Command dispatch table
* ----------------------
diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h
index 4c131219d1c..aadcee2327b 100644
--- a/usr.bin/cvs/cvs.h
+++ b/usr.bin/cvs/cvs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.h,v 1.22 2004/08/05 13:32:08 jfb Exp $ */
+/* $OpenBSD: cvs.h,v 1.23 2004/08/06 13:01:10 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -228,6 +228,8 @@ extern char *cvs_editor;
extern int cvs_cmdop;
+extern CVSFILE *cvs_files;
+
#endif