refactor: introduce virtual file system as a central router for source and target data

This commit is contained in:
りき萌 2024-11-08 14:52:32 +01:00
parent 0b0c0a4de4
commit c4912f4917
4 changed files with 239 additions and 0 deletions

View 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")`