aboutsummaryrefslogtreecommitdiffstats
path: root/strvec.h
diff options
context:
space:
mode:
Diffstat (limited to 'strvec.h')
-rw-r--r--strvec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/strvec.h b/strvec.h
index 6c7e8b7d50..4b73c1f092 100644
--- a/strvec.h
+++ b/strvec.h
@@ -46,6 +46,9 @@ void strvec_init(struct strvec *);
/* Push a copy of a string onto the end of the array. */
const char *strvec_push(struct strvec *, const char *);
+/* Push an allocated string onto the end of the array, taking ownership. */
+void strvec_push_nodup(struct strvec *array, char *value);
+
/**
* Format a string and push it onto the end of the array. This is a
* convenience wrapper combining `strbuf_addf` and `strvec_push`.