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

Method from_repo

atomic-cli/src/commands/change/command.rs:90–95  ·  view source on GitHub ↗

The local repository path. Dependency messages (for `--show-deps`) are filled by the caller once the change's dependency list is known.

(repo: &Repository, hash: &Hash)

Source from the content-addressed store, hash-verified

88 /// The local repository path. Dependency messages (for `--show-deps`)
89 /// are filled by the caller once the change's dependency list is known.
90 pub(crate) fn from_repo(repo: &Repository, hash: &Hash) -> Self {
91 Self {
92 ledger_graphs: repo.find_provenance_for_change(hash).unwrap_or_default(),
93 dep_messages: std::collections::HashMap::new(),
94 }
95 }
96}
97
98impl ChangeCmd {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected