Skip to main content

Module refs

Module refs 

Source
Expand description

Refspec resolution for the LFS lock APIs and ref enumeration helpers used by fetch-recent and prune retention.

Structs§

RecentRef
One ref returned by recent_branches.
WorktreeEntry
One entry from git worktree list --porcelain. Includes the main working copy plus every linked worktree.

Enums§

RefKind

Functions§

current_refspec
Resolve the refspec to send with lock-API requests, or None if the working tree is on a detached HEAD.
recent_branches
Refs whose tip commit was authored on or after since. Mirrors upstream’s git.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 when git worktree exits non-zero (older git versions, bare repos with no linked worktrees, etc.).