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

Function identity_map

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

Source from the content-addressed store, hash-verified

1929}
1930
1931fn identity_map(repo: &Repository, repo_root: &Path) -> atomic_repository::ProjectionIdentityMap {
1932 let _ = repo;
1933 let entries = atomic_config::RepoConfig::load(&repo_root.join(".atomic/config.toml"))
1934 .map(|config| config.git.identity.mappings)
1935 .unwrap_or_default();
1936 atomic_repository::ProjectionIdentityMap::new(entries)
1937}
1938
1939fn local_utc_offset_minutes() -> i32 {
1940 chrono::Local::now().offset().local_minus_utc() / 60

Callers 1

projection_authorFunction · 0.85

Calls 1

loadFunction · 0.85

Tested by

no test coverage detected