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

Function identity_map

atomic-cli/src/commands/git/shadow.rs:1743–1749  ·  view source on GitHub ↗
(repo: &Repository, repo_root: &Path)

Source from the content-addressed store, hash-verified

1741}
1742
1743fn identity_map(repo: &Repository, repo_root: &Path) -> atomic_repository::ProjectionIdentityMap {
1744 let _ = repo;
1745 let entries = atomic_config::RepoConfig::load(&repo_root.join(".atomic/config.toml"))
1746 .map(|config| config.git.identity.mappings)
1747 .unwrap_or_default();
1748 atomic_repository::ProjectionIdentityMap::new(entries)
1749}
1750
1751fn local_utc_offset_minutes() -> i32 {
1752 chrono::Local::now().offset().local_minus_utc() / 60

Callers 1

projection_authorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected