first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
@@ -8,6 +8,16 @@
use galaxy_util::standardized_path::StandardizedPath;
use crate::entry::{DirectoryEntry, Entry, FileMetadata};
use crate::standing_queries::StandingQueryResultsDelta;
/// Describes how a file-tree entry update should be interpreted by consumers.
#[derive(Debug, Clone)]
pub enum MetadataUpdateType {
/// The updated entry was replaced without a precise metadata delta.
/// Consumers should refresh any derived state conservatively.
FullReplace,
/// The updated entry includes a precise incremental metadata delta.
IncrementalUpdate(RepoMetadataUpdate),
}
/// Mirrors `RepoMetadataUpdate` proto.
///
@@ -22,6 +32,8 @@ pub struct RepoMetadataUpdate {
pub remove_entries: Vec<StandardizedPath>,
/// Subtree patches to add or replace in the tree.
pub update_entries: Vec<FileTreeEntryUpdate>,
/// Standing query changes synchronized with this tree change.
pub standing_results_delta: StandingQueryResultsDelta,
}
/// Mirrors `FileTreeEntry` proto.