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

Method has_change

atomic-repository/src/repository/changes.rs:381–383  ·  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

379 /// }
380 /// ```
381 pub fn has_change(&self, hash: &Hash) -> bool {
382 self.change_store.has_change(hash)
383 }
384
385 /// Return every normal change registered in the repository's common graph.
386 ///

Callers 13

apply_view_manifestMethod · 0.45
getMethod · 0.45
checked_git_shaMethod · 0.45
raw_git_sha_rowMethod · 0.45
revise_stackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected