package
1.4.0-beta
Repository: https://github.com/git-time-metric/gtm.git
Documentation: pkg.go.dev

# Functions

CommitIDs returns commit SHA1 IDs starting from the head up to the limit.
ConfigRemove removes git configuration settings.
ConfigSet persists git configuration settings.
CreateNote creates a git note associated with the head commit.
DiffParentCommit compares commit to it's parent and returns their stats.
GitRepoPath discovers .git directory for a repo.
HeadCommit returns the latest commit.
IgnoreRemove removes paths/files ignored for a git repo.
IgnoreSet persists paths/files to ignore for a git repo.
NewCommitLimiter returns a new initialize CommitLimiter struct.
NewStatus create a Status struct for a git repo.
ReadNote returns a commit note for the SHA1 commit id.
RemoveHooks remove matching git hook commands.
SetHooks creates git hooks.
Workdir returns the working directory for a repo.

# Variables

ErrHeadUnborn is raised when there are no commits yet in the git repo.

# Structs

Commit contains commit details.
CommitLimiter struct filter commits by criteria.
CommitNote contains a git note's details.
CommitStats contains the files changed and their stats.
GitHook is the Command with options to be added/removed from a git hook Exe is the executable file name for Linux/MacOS RE is the regex to match on for the command.
Status contains the git file statuses.