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

Method write_current_view

atomic-repository/src/repository/mod.rs:701–705  ·  view source on GitHub ↗

Write the current view to disk.

(&self, view: &str)

Source from the content-addressed store, hash-verified

699
700 /// Write the current view to disk.
701 fn write_current_view(&self, view: &str) -> Result<(), RepositoryError> {
702 let current_path = self.dot_dir.join("current_view");
703 std::fs::write(&current_path, view)?;
704 Ok(())
705 }
706
707 /// Get the path where a change file should be stored.
708 ///

Callers 1

set_current_viewMethod · 0.80

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected