diff options
| author | Micha White <botahamec@outlook.com> | 2025-09-30 11:50:13 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2025-09-30 11:50:13 -0400 |
| commit | 1dd18cdb4c9e537993cef42dd6bb7c040b9ca232 (patch) | |
| tree | 0d24adbf2b1f68339b5ca89afd5aea8a97f64ab9 /src/lib.rs | |
| parent | c3163b60ab27606c04f808792cb3dbb55ab91a67 (diff) | |
Create pristine
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -8,6 +8,7 @@ use std::time::Instant; use serde::{Deserialize, Serialize}; +mod calculation; mod object; mod workarea; @@ -48,9 +49,10 @@ struct Patch { id: PatchId, authors: Vec<ContributorId>, recorder: ContributorId, + dependencies: Vec<PatchId>, metadata: HashMap<String, String>, affected_files: Vec<FileId>, - contents: String, + contents: Vec<u8>, } #[derive(Debug, Clone, Deserialize, Serialize)] @@ -58,7 +60,7 @@ struct FileInfo { id: FileId, root_span: SpanNodeId, name_changes: Vec<(PatchId, FilenameOperation)>, - spans: Vec<SpanNode>, + spans: HashMap<SpanNodeId, SpanNode>, } #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] |
