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

Function verify_git_publication_mode

atomic-cli/src/commands/git/shadow.rs:209–227  ·  view source on GitHub ↗
(
    repo: &Repository,
    repo_root: &Path,
    view: &str,
    require_index_equivalence: bool,
)

Source from the content-addressed store, hash-verified

207}
208
209fn verify_git_publication_mode(
210 repo: &Repository,
211 repo_root: &Path,
212 view: &str,
213 require_index_equivalence: bool,
214) -> CliResult<VerifiedPublication> {
215 let git_repo = GitRepository::discover(repo_root)
216 .map_err(|error| git_error(format!("cannot discover Git repository: {error}")))?;
217 let (policy, filters) = current_conversion_policy(repo_root, &git_repo)?;
218 verify_git_publication_with_policy(
219 repo,
220 repo_root,
221 view,
222 policy,
223 filters,
224 require_index_equivalence,
225 None,
226 )
227}
228
229/// Verify publication equivalence against a caller-supplied project tree.
230///

Callers 3

reobserveMethod · 0.85
verify_git_publicationFunction · 0.85

Calls 3

git_errorFunction · 0.70

Tested by

no test coverage detected