diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-08-06 13:01:11 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-08-06 13:01:11 +0000 |
commit | dfbf55fea93bd266600a2c325117688eb6d26a56 (patch) | |
tree | 51248f3917debe281728fc4a8b4b52b2c8b50561 | |
parent | 6c1be8b130d21514db574383672fd9d67bf010fe (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
-rw-r--r-- | usr.bin/cvs/cvs.c | 7 | ||||
-rw-r--r-- | usr.bin/cvs/cvs.h | 4 |
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 |