summaryrefslogtreecommitdiff
path: root/Documentation/technical/api-argv-array.txt
diff options
context:
space:
mode:
authorPaul Tan <pyokagan@gmail.com>2015-06-14 08:41:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-15 19:40:49 (GMT)
commit85b343245b495a47f937007e1c0650f2070b9b4f (patch)
treeaf7600866200705159dcffec6f35b3ae99c43cf5 /Documentation/technical/api-argv-array.txt
parentffad85c599307441323de565c3fafde227e04a8f (diff)
downloadgit-85b343245b495a47f937007e1c0650f2070b9b4f.zip
git-85b343245b495a47f937007e1c0650f2070b9b4f.tar.gz
git-85b343245b495a47f937007e1c0650f2070b9b4f.tar.bz2
argv-array: implement argv_array_pushv()
When we have a null-terminated array, it would be useful to convert it or append it to an argv_array for further manipulation. Implement argv_array_pushv() which will push a null-terminated array of strings on to an argv_array. Signed-off-by: Paul Tan <pyokagan@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-argv-array.txt')
-rw-r--r--Documentation/technical/api-argv-array.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/technical/api-argv-array.txt b/Documentation/technical/api-argv-array.txt
index 1a79781..8076172 100644
--- a/Documentation/technical/api-argv-array.txt
+++ b/Documentation/technical/api-argv-array.txt
@@ -46,6 +46,9 @@ Functions
Format a string and push it onto the end of the array. This is a
convenience wrapper combining `strbuf_addf` and `argv_array_push`.
+`argv_array_pushv`::
+ Push a null-terminated array of strings onto the end of the array.
+
`argv_array_pop`::
Remove the final element from the array. If there are no
elements in the array, do nothing.