Documentation
¶
Index ¶
- func ParseConventionalCommit(message string) (ccType, scope, subject string)
- type Adapter
- func (a *Adapter) CommitExists(ref string) (bool, error)
- func (a *Adapter) CommitMessageContains(ref, marker string) (bool, error)
- func (a *Adapter) Diff(ref string) (string, error)
- func (a *Adapter) GitDir() (string, error)
- func (a *Adapter) HeadRef() (string, error)
- func (a *Adapter) HookExists(hookType string) (bool, error)
- func (a *Adapter) InstallHook(hookType string) (domain.InstallResult, error)
- func (a *Adapter) IsInsideWorkTree() bool
- func (a *Adapter) IsMergeCommit(ref string) (bool, error)
- func (a *Adapter) IsRebaseInProgress() (bool, error)
- func (a *Adapter) Log(ref string) (*domain.CommitInfo, error)
- func (a *Adapter) UninstallHook(hookType string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConventionalCommit ¶
ParseConventionalCommit extracts type, scope, and subject from a commit message. If the message doesn't match Conventional Commits format, type and scope are empty and subject is the full message.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implements domain.GitAdapter via exec.Command("git", ...).
func NewAdapter ¶
NewAdapter is an alias for New, kept for compatibility with existing callers.
func (*Adapter) CommitMessageContains ¶
func (*Adapter) InstallHook ¶
func (a *Adapter) InstallHook(hookType string) (domain.InstallResult, error)
func (*Adapter) IsInsideWorkTree ¶
func (*Adapter) IsRebaseInProgress ¶
func (*Adapter) UninstallHook ¶
Click to show internal directories.
Click to hide internal directories.