diff options
author | Jeff King <peff@peff.net> | 2011-06-09 11:54:58 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-06-22 11:24:51 -0700 |
commit | 2f1d9e2b93e1b7fbfcfa59331db89dd6c76a3505 (patch) | |
tree | e94c085b9536fa2d196c546482b9c80dfee6fb0b /builtin/reflog.c | |
parent | config: avoid segfault when parsing command-line config (diff) | |
download | tgif-2f1d9e2b93e1b7fbfcfa59331db89dd6c76a3505.tar.xz |
strbuf: allow strbuf_split to work on non-strbufs
The strbuf_split function takes a strbuf as input, and
outputs a list of strbufs. However, there is no reason that
the input has to be a strbuf, and not an arbitrary buffer.
This patch adds strbuf_split_buf for a length-delimited
buffer, and strbuf_split_str for NUL-terminated strings.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reflog.c')
0 files changed, 0 insertions, 0 deletions