summaryrefslogtreecommitdiff
path: root/src/email.c
Commit message (Collapse)AuthorAgeFilesLines
* email: include renames by defaultEdward Thomson2021-09-181-1/+7
| | | | | `git format-patch` includes diffs with rename detection enabled by default when creating emails. Match this behavior.
* email: include binary diffs by defaultEdward Thomson2021-09-181-4/+8
| | | | | `git format-patch` includes binary diffs by default when creating emails. Match this behavior.
* email: introduce 'append_from_diff'Edward Thomson2021-09-181-1/+26
| | | | | Introduce `git_email__append_from_diff` so that we don't always overwrite the input buffer.
* email: introduce `git_email_create_from_diff`Edward Thomson2021-09-181-27/+81
| | | | | | | | | Introduce a function to create an email from a diff and multiple inputs about the source of the diff. Creating an email from a diff requires many more inputs, and should be discouraged in favor of building directly from a commit, and is thus in the `sys` namespace.
* email: introduce `git_email_create_from_commit`Edward Thomson2021-09-181-0/+211
Create `git_email_*` which will encapsulate email creation and application, and `git_email_create_from_commit` in particular, which creates an email for a single commit.