codex-git
Helpers for interacting with git, including patch application and worktree snapshot utilities.
use Path;
use ;
let repo = new;
// Apply a patch (omitted here) to the repository.
let request = ApplyGitRequest ;
let result = apply_git_patch?;
// 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()]).