diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-09-12 16:04:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-12 11:43:24 -0700 |
commit | ff919f965d20d003e3882c70de667f41a86349ac (patch) | |
tree | b63a1df5b8aeebaee410c4d39bf838ea65e16786 /.gitignore | |
parent | string_list: add function string_list_append_nodup() (diff) | |
download | tgif-ff919f965d20d003e3882c70de667f41a86349ac.tar.xz |
string_list: add two new functions for splitting strings
Add two new functions, string_list_split() and
string_list_split_in_place(). These split a string into a string_list
on a separator character. The first makes copies of the substrings
(leaving the input string untouched) and the second splits the
original string in place, overwriting the separator characters with
NULs and referring to the original string's memory.
These functions are similar to the strbuf_split_*() functions except
that they work with the more powerful string_list interface.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index bb5c91e712..0ca7df8e02 100644 --- a/.gitignore +++ b/.gitignore @@ -193,6 +193,7 @@ /test-run-command /test-sha1 /test-sigchain +/test-string-list /test-subprocess /test-svn-fe /common-cmds.h |