Crate codex_git

Crate codex_git 

Source

Structs§

ApplyGitRequest
Parameters for invoking apply_git_patch.
ApplyGitResult
Result of running apply_git_patch, including paths gleaned from stdout/stderr.
CreateGhostCommitOptions
Options to control ghost commit creation.
GhostCommit
Details of a ghost commit created from a repository state.
GhostSnapshotReport
Summary produced alongside a ghost snapshot.
LargeUntrackedDir
Directory containing a large amount of untracked content.

Enums§

GitToolingError
Errors returned while managing git worktree snapshots.

Functions§

apply_git_patch
Apply a unified diff to the target repository by shelling out to git apply.
capture_ghost_snapshot_report
Compute a report describing the working tree for a ghost snapshot without creating a commit.
create_ghost_commit
Create a ghost commit capturing the current state of the repository’s working tree.
create_ghost_commit_with_report
Create a ghost commit capturing the current state of the repository’s working tree along with a report.
create_symlink
extract_paths_from_patch
Collect every path referenced by the diff headers inside diff --git sections.
merge_base_with_head
Returns the merge-base commit between HEAD and the provided branch, if both exist.
parse_git_apply_output
Parse git apply output into applied/skipped/conflicted path groupings.
restore_ghost_commit
Restore the working tree to match the provided ghost commit.
restore_to_commit
Restore the working tree to match the given commit ID.
stage_paths
Stage only the files that actually exist on disk for the given diff.