aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-04-18 14:10:05 -0700
committerJunio C Hamano <gitster@pobox.com>2012-04-18 16:16:38 -0700
commitd15bbe1379a12e2d9a5f18f7dc96b38afafc6c5d (patch)
tree140d766d32778ef23540fde9607032a5bf2206e4 /Documentation
parentfd93d2e60ea66fc3796904ff53ead3ef4755b137 (diff)
downloadgit-d15bbe1379a12e2d9a5f18f7dc96b38afafc6c5d.tar.gz
git-d15bbe1379a12e2d9a5f18f7dc96b38afafc6c5d.tar.xz
argv-array: add a new "pushl" method
It can be convenient to push many strings in a single line (e.g., if you are initializing an array with defaults). This patch provides a convenience wrapper to allow this. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/technical/api-argv-array.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/technical/api-argv-array.txt b/Documentation/technical/api-argv-array.txt
index 49b3d5295..1b7d8f140 100644
--- a/Documentation/technical/api-argv-array.txt
+++ b/Documentation/technical/api-argv-array.txt
@@ -37,6 +37,11 @@ Functions
`argv_array_push`::
Push a copy of a string onto the end of the array.
+`argv_array_pushl`::
+ Push a list of strings onto the end of the array. The arguments
+ should be a list of `const char *` strings, terminated by a NULL
+ argument.
+
`argv_array_pushf`::
Format a string and push it onto the end of the array. This is a
convenience wrapper combining `strbuf_addf` and `argv_array_push`.