Versions in this module Expand all Collapse all v0 v0.18.0 May 6, 2026 Changes in this version + var Command = &cobra.Command + func GetCommitHashes(context context.Context, cmd *cobra.Command, args []string, toComplete string) (hashes []string, err error) + type Commit struct + Author user.Author + Date time.Time + Hash string + Links common.Links + Message string + Parents []CommitReference + Rendered *RenderedMessage + Repository repository.Repository + Summary *common.RenderedText + func GetCommitByHash(ctx context.Context, cmd *cobra.Command, hash string) (commit *Commit, err error) + func GetCommits(context context.Context, cmd *cobra.Command) (commits []Commit, err error) + func GetCommitsWithPrefix(context context.Context, cmd *cobra.Command, prefix string) (commits []Commit, err error) + func GetLatestCommit(ctx context.Context, cmd *cobra.Command) (commit *Commit, err error) + func (commit *Commit) Validate() error + func (commit Commit) GetColumnDefinitions() common.Columns[Commit] + func (commit Commit) GetHeaders(cmd *cobra.Command) []string + func (commit Commit) GetReference() *CommitReference + func (commit Commit) GetRow(headers []string) []string + func (commit Commit) GetShortHash() string + func (commit Commit) GetType() string + func (commit Commit) MarshalJSON() (data []byte, err error) + func (commit Commit) String() string + type CommitReference struct + Hash string + Links common.Links + func (reference CommitReference) AsCommit() *Commit + func (reference CommitReference) GetShortHash() string + func (reference CommitReference) MarshalJSON() (data []byte, err error) + func (reference CommitReference) String() string + type Commits []Commit + func (commits Commits) GetHeaders(cmd *cobra.Command) []string + func (commits Commits) GetRowAt(index int, headers []string) []string + func (commits Commits) Size() int + type RenderedMessage struct + Message common.RenderedText