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

Method origins_for

atomic-cli/src/commands/git/parallel.rs:917–929  ·  view source on GitHub ↗

Full-chain view membership with Git origins, loaded once per run and refreshed with this run's introductions.

(
        &mut self,
        repo: &Repository,
        target_view: &str,
    )

Source from the content-addressed store, hash-verified

915 /// Full-chain view membership with Git origins, loaded once per run and
916 /// refreshed with this run's introductions.
917 fn origins_for(
918 &mut self,
919 repo: &Repository,
920 target_view: &str,
921 ) -> CliResult<Vec<(ContentHash, Option<String>)>> {
922 if self.member_origins.is_none() {
923 self.member_origins = Some(
924 repo.full_chain_member_origins(target_view)
925 .map_err(|e| CliError::Internal(e.into()))?,
926 );
927 }
928 Ok(self.member_origins.as_ref().expect("loaded above").clone())
929 }
930
931 /// Changes in `target_view` (full ancestor chain included) that are NOT
932 /// part of `sha`'s interpreted closure — the sibling lineages that must

Callers 2

exclusions_forMethod · 0.80

Calls 4

is_noneMethod · 0.80
as_refMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected