vendor/libgit2/src/patch.c in rugged-1.3.2.3 vs vendor/libgit2/src/patch.c in rugged-1.4.2

- old
+ new

@@ -74,18 +74,18 @@ if (include_hunk_headers) out += patch->header_size; if (include_file_headers) { - git_buf file_header = GIT_BUF_INIT; + git_str file_header = GIT_STR_INIT; if (git_diff_delta__format_file_header( &file_header, patch->delta, NULL, NULL, 0, true) < 0) git_error_clear(); else - out += git_buf_len(&file_header); + out += git_str_len(&file_header); - git_buf_dispose(&file_header); + git_str_dispose(&file_header); } return out; }