Git.ShowResult (git v0.4.0)

Copy Markdown View Source

Represents the parsed result of a git show command.

When the default format is used (no custom --format or --oneline), the commit header is parsed into a Git.Commit struct and the remaining output is captured as diff and stat text. When a custom format is provided, only the raw field is populated.

Summary

Types

t()

@type t() :: %Git.ShowResult{
  commit: Git.Commit.t() | nil,
  diff: String.t(),
  raw: String.t(),
  stat: String.t() | nil
}