Ggit.Diff.format_email

### Method

# Ggit Diffformat_email

#### Declaration [src]

    gchar*
    ggit_diff_format_email (
      GgitDiff* diff,
      GgitDiffFormatEmailOptions* options,
      GError** error
    )

#### Description [src]

Create an e-mail ready patch from a diff.

#### Parameters

`options` | `GgitDiffFormatEmailOptions`
| A `GgitDiffFormatEmailOptions`.
| The data is owned by the caller of the function.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gchar*`
| The patch or `NULL` if an error occurred.
| The caller of the method takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.
| The value is a NUL terminated UTF-8 string.