Skip to main content

Module git

Module git 

Source
Expand description

Git integration for ref-based diffs.

Structs§

TempWorktree
A temporary git worktree that cleans up on drop.

Enums§

DiffArg
What a diff argument resolved to.

Functions§

classify_diff_arg
Classify a diff argument as a snapshot file or git ref.
create_worktree
Create a temporary worktree checked out at the given git ref.
is_git_repo
Check whether the given path is inside a git repository.
repo_root
Find the git repository root from any path inside it.