diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2009-03-29 11:44:52 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-30 01:22:53 -0700 |
commit | eaa759b9141f125d7e55a4b08b60497845d3c52e (patch) | |
tree | a10153bea4a6ae128be98c08d55f6b5a66fbe912 /quote.h | |
parent | ebbc088e13e1bf0dbf8eb08b00519602c176f864 (diff) | |
download | git-eaa759b9141f125d7e55a4b08b60497845d3c52e.tar.gz |
quote: add "sq_dequote_to_argv" to put unwrapped args in an argv array
This new function unwraps the space separated shell quoted elements in
its first argument and places them in the argv array passed as its second
argument.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.h')
-rw-r--r-- | quote.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -46,6 +46,7 @@ extern char *sq_dequote(char *); * is no more argument to be dequoted, "next" is updated to point to NULL. */ extern char *sq_dequote_step(char *arg, char **next); +extern int sq_dequote_to_argv(char *arg, const char ***argv, int *nr, int *alloc); extern int unquote_c_style(struct strbuf *, const char *quoted, const char **endp); extern size_t quote_c_style(const char *name, struct strbuf *, FILE *, int no_dq); |