summaryrefslogtreecommitdiff
path: root/argv-array.h
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 /argv-array.h
parentfd93d2e60ea66fc3796904ff53ead3ef4755b137 (diff)
downloadgit-d15bbe1379a12e2d9a5f18f7dc96b38afafc6c5d.tar.gz
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 'argv-array.h')
-rw-r--r--argv-array.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/argv-array.h b/argv-array.h
index c45c698d53..b93a69c36c 100644
--- a/argv-array.h
+++ b/argv-array.h
@@ -15,6 +15,7 @@ void argv_array_init(struct argv_array *);
void argv_array_push(struct argv_array *, const char *);
__attribute__((format (printf,2,3)))
void argv_array_pushf(struct argv_array *, const char *fmt, ...);
+void argv_array_pushl(struct argv_array *, ...);
void argv_array_clear(struct argv_array *);
#endif /* ARGV_ARRAY_H */