Versions in this module Expand all Collapse all v1 v1.0.0 Nov 4, 2025 Changes in this version + func Commit(message string) error + func GetStagedFiles() ([]string, error) + func IsGitRepository() bool + func IsInGitRepo() bool + type CommitError struct + Err error + Message string + Output string + Type ErrorType + func (e *CommitError) Error() string + func (e *CommitError) GetDetails() string + func (e *CommitError) IsHook() bool + type CommitResult struct + Details string + Message string + Success bool + func CommitWithResult(message string) *CommitResult + type ErrorType int + const ErrorTypeHookFailed + const ErrorTypeMergeConflict + const ErrorTypeNoChanges + const ErrorTypeNotInRepo + const ErrorTypeUnknown