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

Method has_change

atomic-repository/src/repository/changes.rs:169–171  ·  view source on GitHub ↗

Check if a change exists in the repository. This checks both the cache and the filesystem. Note that this doesn't verify the integrity of the change file. # Arguments `hash` - The hash of the change to check # Example ```rust,ignore if repo.has_change(&hash) { let change = repo.load_change(&hash)?; // ... } ```

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

167 /// }
168 /// ```
169 pub fn has_change(&self, hash: &Hash) -> bool {
170 self.change_store.has_change(hash)
171 }
172
173 /// Backfill the pristine normal-change dependency index from stored changes.
174 ///

Callers 1

apply_view_manifestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected