Expand description
Refspec resolution for the LFS lock APIs and ref enumeration helpers used by fetch-recent and prune retention.
Structs§
- Recent
Ref - One ref returned by
recent_branches. - Worktree
Entry - One entry from
git worktree list --porcelain. Includes the main working copy plus every linked worktree.
Enums§
Functions§
- current_
refspec - Resolve the refspec to send with lock-API requests, or
Noneif the working tree is on a detached HEAD. - recent_
branches - Refs whose tip commit was authored on or after
since. Mirrors upstream’sgit.RecentBranches(git/git.go::RecentBranches). - worktrees
- Every worktree attached to this repo (
git worktree list --porcelain -z). Includes the main working copy. Returns an empty vec whengit worktreeexits non-zero (older git versions, bare repos with no linked worktrees, etc.).