Expublish.Git (expublish v2.4.2) View Source

Shell commands for git.

Link to this section Summary

Functions

Create a git commit and tag for given %Version{}.

Validate state of git working directory.

Link to this section Functions

Link to this function

commit_and_tag(version, options \\ %Options{})

View Source

Specs

commit_and_tag(Version.t(), Expublish.Options.t()) :: Version.t()

Create a git commit and tag for given %Version{}.

Link to this function

push(version, options \\ %Options{})

View Source

Specs

push(Version.t(), %Expublish.Options{
  allow_untracked: term(),
  as_major: term(),
  as_minor: term(),
  branch: term(),
  commit_prefix: term(),
  disable_publish: term(),
  disable_push: term(),
  disable_test: term(),
  dry_run: term(),
  help: term(),
  remote: term(),
  tag_prefix: term()
}) :: Version.t()

Git push to remote.

Link to this function

validate(options \\ %Options{})

View Source

Specs

validate(Expublish.Options.t()) :: :ok | String.t()

Validate state of git working directory.

Returns :ok or error message.