]> git.ipfire.org Git - thirdparty/git.git/commit - argv-array.c
argv_array: offer to split a string by whitespace
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 25 Apr 2018 09:53:57 +0000 (11:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2018 03:52:57 +0000 (12:52 +0900)
commitc5aa6db64f6f43621568bb1fec9360c25dbd2749
tree1fbcdaab2c2e157afbe8def43d47b1b432463a7b
parent1f1cddd558b54bb0ce19c8ace353fd07b758510d
argv_array: offer to split a string by whitespace

This is a simple function that will interpret a string as a whitespace
delimited list of values, and add those values into the array.

Note: this function does not (yet) offer to split by arbitrary delimiters,
or keep empty values in case of runs of whitespace, or de-quote Unix shell
style. All fo this functionality can be added later, when and if needed.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
argv-array.c
argv-array.h