Ragex.Git.Commit (Ragex v0.18.2)

View Source

A parsed git commit with metadata.

Fields

  • :sha -- full commit hash
  • :short_sha -- abbreviated hash (first 8 chars)
  • :author -- author name
  • :email -- author email
  • :date -- DateTime of the commit
  • :message -- full commit message
  • :summary -- first line of the commit message
  • :files_changed -- list of {path, status} tuples (populated by log with --name-status)

Summary

Types

t()

@type t() :: %Ragex.Git.Commit{
  author: String.t(),
  date: DateTime.t() | nil,
  email: String.t(),
  files_changed: [{String.t(), atom()}],
  message: String.t(),
  sha: String.t(),
  short_sha: String.t(),
  summary: String.t()
}