Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadSHA ¶
HeadSHA returns the current HEAD commit SHA in the given repo. Returns "" if git is unavailable, repoRoot is not a git repo, or the repo has no commits yet. Never returns an error — callers treat "" as "git unavailable" and skip commit tracking gracefully.
func LogSince ¶
LogSince returns a slice of short commit descriptions (e.g. "a1b2c3d fix: typo") for all commits reachable from HEAD that are NOT reachable from startCommit. This is the set of commits made after startCommit became HEAD.
Returns nil when:
- repoRoot or startCommit is empty
- git is not installed or repoRoot is not a git repo
- startCommit is no longer in history (rebase/force-push) — rebase-safe
- no commits exist since startCommit
Note: commits are repo-wide. In multi-agent scenarios, commits from other agents working in the same repo are included. Git provides no per-agent isolation — this is the correct tradeoff.
Types ¶
This section is empty.