codex-git-tooling
Helpers for interacting with git, primarily used by Code to capture and restore workspace snapshots.
use Path;
use ;
let repo = new;
// Capture the current working tree as an unreferenced commit.
let ghost = create_ghost_commit?;
// Later, undo back to that state.
restore_ghost_commit?;
Pass a custom message with .message("…") or force-include ignored files with
.force_include(["ignored.log".into()]).