# `Git.ShowResult`
[🔗](https://github.com/joshrotenberg/git_wrapper_ex/blob/main/lib/git/show_result.ex#L1)

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.

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
