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

Function has_binding_transport

atomic-cli/src/commands/git/import.rs:189–201  ·  view source on GitHub ↗

Binding transport requires the ordinary importer. Presence selects the route only; it is not evidence that any binding is valid or trusted.

(git_repo: &GitRepository)

Source from the content-addressed store, hash-verified

187/// Binding transport requires the ordinary importer. Presence selects the
188/// route only; it is not evidence that any binding is valid or trusted.
189pub(super) fn has_binding_transport(git_repo: &GitRepository) -> CliResult<bool> {
190 git_repo
191 .references_glob("refs/atomic/bindings/*")
192 .map_err(|error| CliError::GitError {
193 message: error.to_string(),
194 })?
195 .next()
196 .transpose()
197 .map(|reference| reference.is_some())
198 .map_err(|error| CliError::GitError {
199 message: error.to_string(),
200 })
201}
202
203const GIT_SHADOW_EXCLUDE_PATTERNS: &[&str] = &["/.atomic/", "/.vault/", "/.atomicignore"];
204

Callers 2

graph_stream_inputsMethod · 0.85
run_importMethod · 0.85

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected