Align the view pointer without materializing the working copy. This persists the new view name to `.atomic/current_view` so that subsequent `status()`, `add()`, and `record()` calls target the correct view, but it does **not** add, remove, or update any files on disk. Use this only when the caller will immediately populate the working copy itself (e.g. the agent record hook, which creates files
(&mut self, view: &str)
| 675 | /// Returns an error if the view does not exist or the pointer file |
| 676 | /// cannot be written. |
| 677 | pub fn align_to_view(&mut self, view: &str) -> Result<(), RepositoryError> { |
| 678 | self.align_deferred_tree_and_publish_view(view).map(|_| ()) |
| 679 | } |
| 680 | |
| 681 | /// Set the current view on this handle only. |
| 682 | /// |