Releaser.Git (releaser v0.0.7)

Copy Markdown View Source

Git helper operations for changelog generation and post-bump hooks.

Summary

Functions

Stages files for commit.

Creates a git commit with the given message.

Returns true if the working tree has uncommitted changes.

Returns the latest git tag, or nil if none.

Returns the list of commits between two refs, optionally scoped to a path.

Creates an annotated git tag.

Functions

add(paths)

Stages files for commit.

commit(message)

Creates a git commit with the given message.

dirty?()

Returns true if the working tree has uncommitted changes.

latest_tag()

Returns the latest git tag, or nil if none.

log(opts \\ [])

Returns the list of commits between two refs, optionally scoped to a path.

Each commit is a map with :hash, :subject, and :body keys.

tag(tag_name, message \\ nil)

Creates an annotated git tag.