Versions in this module Expand all Collapse all v0 v0.1.1 Jul 15, 2026 v0.1.0 Jul 14, 2026 Changes in this version + func Blame(workspace string, path string, line int) (string, error) + func Branch(workspace string) (string, error) + func Changelog(workspace string, limit int) (string, error) + func CreateBranch(workspace, name, startPoint string, checkout bool) (string, error) + func CreateTag(workspace, name, ref, message string) (string, error) + func DeleteBranch(workspace, name string, force bool) (string, error) + func DeleteTag(workspace, name string) (string, error) + func Diff(workspace string, staged bool) (string, error) + func DiffChangedFilesWithOptions(workspace string, options DiffOptions) ([]string, error) + func DiffWithOptions(workspace string, options DiffOptions) (string, error) + func FormatStaleBaseWarning(check BaseCommitCheck) string + func Head(workspace string) (string, error) + func IsNoGitRepoError(err error) bool + func Log(workspace string, limit int) (string, error) + func RenameBranch(workspace, oldName, newName string) (string, error) + func Root(workspace string) (string, error) + func Run(workspace string, args ...string) (string, error) + func ShowTag(workspace, name string) (string, error) + func StashApply(workspace string, ref string) (string, error) + func StashList(workspace string) (string, error) + func StashPop(workspace string, ref string) (string, error) + func StashPush(workspace string, options StashPushOptions) (string, error) + func Status(workspace string) (string, error) + func SwitchBranch(workspace, name string) (string, error) + func ValidateBaseCommitValue(value string) error + type BaseCommitCheck struct + Actual string + Expected string + Matches bool + Source *BaseCommitSource + Status string + Warning string + func CheckBaseCommit(workspace string, source *BaseCommitSource) BaseCommitCheck + func CheckBaseCommitForWorkspace(workspace string, flagValue string) (BaseCommitCheck, error) + type BaseCommitSource struct + Kind string + Path string + Value string + func ResolveExpectedBase(workspace string, flagValue string) (*BaseCommitSource, error) + type BlameEntry struct + Author string + AuthorEmail string + AuthorTime int64 + Commit string + Filename string + FinalLine int + Line string + OriginalLine int + ShortCommit string + Summary string + func BlameEntries(workspace string, path string, line int) ([]BlameEntry, error) + type BranchFreshness struct + Ahead int + Base string + Behind int + Branch string + Event *laneevents.Event + Fresh bool + HasUpstream bool + MissingFixes []string + RecoveryScenario string + Status string + SuggestedAction string + SuggestedCommands []string + Upstream string + VerificationBlocked bool + func CheckBranchFreshness(workspace, branch, base string) (BranchFreshness, error) + type BranchInfo struct + Commit string + Current bool + Name string + Subject string + Upstream string + type BranchList struct + Branches []BranchInfo + Current string + func ListBranches(workspace string) (BranchList, error) + type CommitOptions struct + All bool + Message string + type CommitResult struct + Commit string + Output string + Summary string + func Commit(workspace string, options CommitOptions) (CommitResult, error) + type DiffOptions struct + Paths []string + Staged bool + type Identity struct + GitDir string + HeadRef string + HeadSHA string + HeadShortSHA string + IsBare bool + IsDetached bool + IsWorktree bool + func InspectIdentity(workspace string) (Identity, error) + type LogEntry struct + AuthorEmail string + AuthorName string + Commit string + Date string + ShortCommit string + Subject string + func LogEntries(workspace string, limit int) ([]LogEntry, error) + type Operation struct + AbortHint string + Description string + GitDir string + Kind string + MarkerPath string + Paused bool + ResumeHint string + func InspectOperation(workspace string) (*Operation, error) + type PreservedGitState struct + BranchName string + FormatPatch string + HeadSHA string + Patch string + RemoteBase string + RemoteBaseSHA string + UntrackedFiles []PreservedUntrackedFile + func PreserveStateForIssue(workspace string) (*PreservedGitState, error) + type PreservedUntrackedFile struct + Content string + Path string + type StashInfo struct + Commit string + Ref string + Subject string + func ListStashes(workspace string) ([]StashInfo, error) + type StashPushOptions struct + IncludeUntracked bool + Message string + type TagInfo struct + Commit string + Name string + Subject string + func ListTags(workspace, pattern string, limit int) ([]TagInfo, error)