GitOps.Git (Git Ops v2.9.0)

View Source

Helper functions for working with Git and fetching the tags/commits we care about.

Summary

Types

commit_info()

@type commit_info() :: %{
  hash: String.t(),
  message: String.t(),
  author_name: String.t(),
  author_email: String.t()
}

Functions

add!(repo, args)

@spec add!(Git.Repository.t(), [String.t()]) :: String.t()

commit!(repo, args)

@spec commit!(Git.Repository.t(), [String.t()]) :: String.t()

get_commit_info(repo, since_tag \\ :all)

@spec get_commit_info(Git.Repository.t(), String.t() | :all) :: [commit_info()]

hooks_path(repo)

@spec hooks_path(Git.Repository.t()) :: String.t() | no_return()

init!(repo_path)

@spec init!(String.t()) :: Git.Repository.t()

initial_commit_message()

parse_git_log(git_log_output)

@spec parse_git_log(String.t()) :: [commit_info()]

tag!(repo, current_version)

@spec tag!(Git.Repository.t(), String.t() | [String.t()]) :: String.t()

tags(repo)

@spec tags(Git.Repository.t()) :: [String.t()]