Commit 62eb2f83 by Edward Thomson

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.
parent ba01547d
...@@ -217,7 +217,6 @@ int git_email__append_from_diff( ...@@ -217,7 +217,6 @@ int git_email__append_from_diff(
memcpy(&opts, given_opts, sizeof(git_email_create_options)); memcpy(&opts, given_opts, sizeof(git_email_create_options));
git_buf_sanitize(out); git_buf_sanitize(out);
git_buf_clear(out);
if ((error = append_header(out, patch_idx, patch_count, commit_id, summary, author, &opts)) == 0 && if ((error = append_header(out, patch_idx, patch_count, commit_id, summary, author, &opts)) == 0 &&
(error = append_body(out, body)) == 0 && (error = append_body(out, body)) == 0 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment