Documentation
¶
Overview ¶
Package gitutil shells out to the `git` CLI (docs/conventions.md: "Git/GitHub: never go-git") to answer the small set of questions m1-sessions needs about a launch directory: is it a git checkout, what branch is it on, and is it a linked worktree. Nothing here is Claude-Code-format knowledge; it stays out of internal/claudecode by design.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Branch ¶
Branch returns the current branch name, or nil when dir isn't a git checkout or is in a detached-HEAD state (session.branch is "null when not git" — Schema Changes).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.