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

Method current_view

libatomic/src/daemon/state.rs:80–85  ·  view source on GitHub ↗

The current view, read from the `.atomic/current_view` marker WITHOUT opening any database (ResolveRepository is a lookup, not a storage open — CONTRACT "routing" section).

(&self)

Source from the content-addressed store, hash-verified

78 /// opening any database (ResolveRepository is a lookup, not a storage
79 /// open — CONTRACT "routing" section).
80 pub fn current_view(&self) -> String {
81 let path = self.root.join(".atomic").join("current_view");
82 std::fs::read_to_string(&path)
83 .map(|content| content.trim().to_string())
84 .unwrap_or_else(|_| "dev".to_string())
85 }
86
87 pub fn repository_ref(&self) -> RepositoryRef {
88 RepositoryRef {

Callers 15

get_change_implFunction · 0.45
list_viewsMethod · 0.45
create_viewMethod · 0.45
split_viewMethod · 0.45
resolve_repositoryMethod · 0.45
logMethod · 0.45
preview_mutationMethod · 0.45
restoreMethod · 0.45
insert_changesMethod · 0.45
create_sandbox_treeMethod · 0.45
push_changes_implFunction · 0.45
pull_changes_implFunction · 0.45

Calls

no outgoing calls