summaryrefslogtreecommitdiff
path: root/quote.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-06-09 15:54:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-06-22 18:24:51 (GMT)
commit2f1d9e2b93e1b7fbfcfa59331db89dd6c76a3505 (patch)
treee94c085b9536fa2d196c546482b9c80dfee6fb0b /quote.h
parentc5d6350bdc8d0d8bd4bd1aa0273313e71cd548f6 (diff)
downloadgit-2f1d9e2b93e1b7fbfcfa59331db89dd6c76a3505.zip
git-2f1d9e2b93e1b7fbfcfa59331db89dd6c76a3505.tar.gz
git-2f1d9e2b93e1b7fbfcfa59331db89dd6c76a3505.tar.bz2
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 'quote.h')
0 files changed, 0 insertions, 0 deletions