diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2016-11-02 10:29:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-29 14:22:18 -0800 |
commit | 710714aaa822acbad14f1b7100fa2776d2bc8ce6 (patch) | |
tree | ea24ab3dfc122e037bfd04cd66eb9ec6bed7ee68 /trailer.c | |
parent | e4319562bc2834096fade432fd90c985b96476db (diff) | |
download | git-710714aaa822acbad14f1b7100fa2776d2bc8ce6.tar.gz |
commit: make ignore_non_trailer take buf/len
Make ignore_non_trailer take a buf/len pair instead of struct strbuf.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trailer.c')
-rw-r--r-- | trailer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -842,7 +842,7 @@ static int find_trailer_end(struct strbuf **lines, int patch_start) for (i = 0; i < patch_start; i++) strbuf_addbuf(&sb, lines[i]); - ignore_bytes = ignore_non_trailer(&sb); + ignore_bytes = ignore_non_trailer(sb.buf, sb.len); strbuf_release(&sb); for (i = patch_start - 1; i >= 0 && ignore_bytes > 0; i--) ignore_bytes -= lines[i]->len; |