Skip to main content

create_ghost_snapshot

Function create_ghost_snapshot 

Source
pub fn create_ghost_snapshot(repo_path: &Path) -> Result<()>
Expand description

Takes an “Isolated Ghost Snapshot” by saving the current state to a hidden ref using a temporary Git index. This prevents pollution of the user’s staged changes.