gitlog

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecCommandFunc added in v0.12.1

type ExecCommandFunc func(name string, arg ...string) *exec.Cmd

ExecCommandFunc is the function signature matching exec.Command.

type GetCommitsFn

type GetCommitsFn func(since, until string) ([]string, error)

GetCommitsFn is the function type for GetCommits (used for dependency injection).

func DefaultGetCommitsFn added in v0.12.1

func DefaultGetCommitsFn() GetCommitsFn

DefaultGetCommitsFn returns a GetCommitsFn backed by a real GitLog instance.

type GitLog added in v0.12.1

type GitLog struct {
	ExecCommandFn ExecCommandFunc
}

GitLog retrieves commit messages from a git repository.

func NewGitLog added in v0.12.1

func NewGitLog() *GitLog

NewGitLog creates a GitLog with the real exec.Command implementation.

func (*GitLog) GetCommits added in v0.12.1

func (g *GitLog) GetCommits(since string, until string) ([]string, error)

GetCommits returns commit messages between since and until refs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL