commit: replace the raw buffer with strbuf in read_graft_line
This simplifies function declaration and allows for use of strbuf_rtrim
instead of modifying buffer directly.
Signed-off-by: Patryk Obara <patryk.obara@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
@ -134,34 +134,33 @@ int register_commit_graft(struct commit_graft *graft, int ignore_dups)
@@ -134,34 +134,33 @@ int register_commit_graft(struct commit_graft *graft, int ignore_dups)
return 0;
}
struct commit_graft *read_graft_line(char *buf, int len)