Commit Graph

5 Commits

Author SHA1 Message Date
Peter Pettersson
38c3449822 Make enum in includes C90 compliant by removing trailing comma. 2021-11-15 16:45:40 +01:00
Edward Thomson
67b1d019a8 email: include renames by default
`git format-patch` includes diffs with rename detection enabled by
default when creating emails.  Match this behavior.
2021-09-18 08:32:41 -04:00
Edward Thomson
323f222f7e email: include binary diffs by default
`git format-patch` includes binary diffs by default when creating
emails.  Match this behavior.
2021-09-18 08:32:41 -04:00
Edward Thomson
6aa3496679 email: introduce git_email_create_from_diff
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.
2021-09-18 08:32:41 -04:00
Edward Thomson
75d4676a64 email: introduce git_email_create_from_commit
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.
2021-09-18 08:32:41 -04:00