diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-21 10:59:49 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-21 10:59:49 -0400 |
commit | 62eb2f8316902f81f5d55f684f3994672a1073bf (patch) | |
tree | ba29ceb903bfc0ccae261cbcd3061cbf9b03a126 /src | |
parent | ba01547d4a8190d5e4df317d4b0d0767e160bc57 (diff) | |
download | libgit2-62eb2f8316902f81f5d55f684f3994672a1073bf.tar.gz |
email: don't clear buffer in append function
`git_email__append_from_diff` is meant to - well, append from a diff.
Clearing the buffer, by definition, is not appending. Stop doing that.
Diffstat (limited to 'src')
-rw-r--r-- | src/email.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/email.c b/src/email.c index 8957d9a38..df63b6ec3 100644 --- a/src/email.c +++ b/src/email.c @@ -217,7 +217,6 @@ int git_email__append_from_diff( memcpy(&opts, given_opts, sizeof(git_email_create_options)); git_buf_sanitize(out); - git_buf_clear(out); if ((error = append_header(out, patch_idx, patch_count, commit_id, summary, author, &opts)) == 0 && (error = append_body(out, body)) == 0 && |