MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / add_inode_update

Method add_inode_update

atomic-core/src/record/builder.rs:329–331  ·  view source on GitHub ↗

Associate an inode update with a graph_op. When the change is applied locally, this update will be used to maintain the tree/inode database tables. # Arguments `hunk_index` - The index of the graph_op (from `add_hunk`) `update` - The inode update to associate # Example ```rust use atomic_core::record::{RecordBuilder, InodeUpdate}; use atomic_core::types::{ChangePosition, Inode}; let mut buil

(&mut self, hunk_index: usize, update: InodeUpdate)

Source from the content-addressed store, hash-verified

327 /// // ));
328 /// ```
329 pub fn add_inode_update(&mut self, hunk_index: usize, update: InodeUpdate) {
330 self.updatables.insert(hunk_index, update);
331 }
332
333 /// Mark an inode as recorded at a specific position.
334 ///

Callers 4

test_add_inode_updateFunction · 0.80
test_stats_populatedFunction · 0.80
test_recorded_into_partsFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by 4

test_add_inode_updateFunction · 0.64
test_stats_populatedFunction · 0.64
test_recorded_into_partsFunction · 0.64