Expand description
Pure git plumbing shared across feature modules (sdd change binding, tool agents-md, skills config discovery, prompts paths).
Function bodies are moved verbatim from their original homes
(sdd::change::git_native, skills::shared::git) so error messages stay
byte-identical. Sdd-specific binding semantics (ChangeGitBinding,
read/write_binding, start/attach/checkpoint flows) remain in
sdd::change::git_native.
This module is a member of the top-level utility layer (future
llman-core); it MUST NOT import feature modules (sdd/skills/tool/x).
Functionsยง
- branch_
diff - branch_
has_ upstream - current_
branch - current_
head_ sha - find_
git_ root - Walk up from
startlooking for a.gitentry (dir or worktree file). - git_
common_ dir - Resolve the absolute
.gitdirectory path. - git_
ref_ exists - is_
default_ branch - merge_
base_ sha - resolve_
default_ branch_ ref - run_git
- working_
tree_ clean - worktree_
add git worktree add <path> -b <branch> <base_sha>(creates and checks out).- worktree_
exists - Check if a directory is already a git worktree.