diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2017-08-18 20:33:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-18 21:18:10 +0200 |
commit | 9a9340329a7151697c943794369950115963879f (patch) | |
tree | 4784f79fb2b36f7038c3da3e6031a85db24cc156 /commit.h | |
parent | sha1_file: fix definition of null_sha1 (diff) | |
download | git-9a9340329a7151697c943794369950115963879f.tar.xz git-9a9340329a7151697c943794369950115963879f.zip |
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 'commit.h')
-rw-r--r-- | commit.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -247,7 +247,7 @@ struct commit_graft { }; typedef int (*each_commit_graft_fn)(const struct commit_graft *, void *); -struct commit_graft *read_graft_line(char *buf, int len); +struct commit_graft *read_graft_line(struct strbuf *line); int register_commit_graft(struct commit_graft *, int); struct commit_graft *lookup_commit_graft(const struct object_id *oid); |