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

Represents the parsed result of a `git cherry-pick` command.

Returned by the cherry-pick command on a successful (exit code 0) pick operation.
For abort, continue, and skip operations, `{:ok, :done}` is returned instead.

# `t`

```elixir
@type t() :: %Git.CherryPickResult{conflicts: boolean(), raw: String.t()}
```

# `parse`

```elixir
@spec parse(String.t()) :: t()
```

Parses the output of `git cherry-pick` into a `Git.CherryPickResult` struct.

Checks for the `"CONFLICT"` pattern in the output to detect merge conflicts.

## Examples

    iex> Git.CherryPickResult.parse("[main abc1234] cherry-picked commit\n 1 file changed, 1 insertion(+)\n")
    %Git.CherryPickResult{conflicts: false, raw: "[main abc1234] cherry-picked commit\n 1 file changed, 1 insertion(+)\n"}

---

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