Skip to content

Commit 62eb2f8

Browse files
committed
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.
1 parent ba01547 commit 62eb2f8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/email.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ int git_email__append_from_diff(
217217
memcpy(&opts, given_opts, sizeof(git_email_create_options));
218218

219219
git_buf_sanitize(out);
220-
git_buf_clear(out);
221220

222221
if ((error = append_header(out, patch_idx, patch_count, commit_id, summary, author, &opts)) == 0 &&
223222
(error = append_body(out, body)) == 0 &&

0 commit comments

Comments
 (0)