Structs§
- Apply
GitRequest - Parameters for invoking
apply_git_patch. - Apply
GitResult - Result of running
apply_git_patch, including paths gleaned from stdout/stderr. - Create
Ghost Commit Options - Options to control ghost commit creation.
- Ghost
Commit - Details of a ghost commit created from a repository state.
- Ghost
Snapshot Report - Summary produced alongside a ghost snapshot.
- Large
Untracked Dir - Directory containing a large amount of untracked content.
Enums§
- GitTooling
Error - 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 --gitsections. - merge_
base_ with_ head - Returns the merge-base commit between
HEADand the provided branch, if both exist. - parse_
git_ apply_ output - Parse
git applyoutput 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.