refactor: introduce virtual file system as a central router for source and target data
This commit is contained in:
parent
0b0c0a4de4
commit
c4912f4917
4 changed files with 239 additions and 0 deletions
17
content/treehouse/vfs.tree
Normal file
17
content/treehouse/vfs.tree
Normal file
|
@ -0,0 +1,17 @@
|
|||
%% title = "treehouse virtual file system design"
|
||||
|
||||
- notes on the design; this is not an actual listing of the virtual file system
|
||||
|
||||
- `content` - `GitDir(".", "content")`
|
||||
|
||||
- `GitDir` is a special filesystem which makes all files have subpaths with commit data sourced from git.
|
||||
their entries are ordered by how new/old a commit is
|
||||
|
||||
- `inner/<commit>` - contains the file content and a revision info fork
|
||||
|
||||
- `inner/latest` - same but for the latest revision, if applicable.
|
||||
this may be the working tree
|
||||
|
||||
- `template` - `PhysicalDir("template")`
|
||||
|
||||
- `static` - `PhysicalDir("static")`
|
Loading…
Add table
Add a link
Reference in a new issue