diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2017-08-18 21:33:12 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-18 22:18:10 +0300 |
commit | 9a9340329a7151697c943794369950115963879f (patch) | |
tree | 4784f79fb2b36f7038c3da3e6031a85db24cc156 /builtin | |
parent | 50c5cd5800be172300da79b271037148f31d1987 (diff) |
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>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/blame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index bda1a78726..d4472e9548 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -488,7 +488,7 @@ static int read_ancestry(const char *graft_file) return -1; while (!strbuf_getwholeline(&buf, fp, '\n')) { /* The format is just "Commit Parent1 Parent2 ...\n" */ - struct commit_graft *graft = read_graft_line(buf.buf, buf.len); + struct commit_graft *graft = read_graft_line(&buf); if (graft) register_commit_graft(graft, 0); } |