first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user