path: root/Documentation/technical/api-argv-array.txt
diff options
authorFlorian Achleitner <>2012-09-19 15:21:18 (GMT)
committerJunio C Hamano <>2012-10-07 21:10:16 (GMT)
commitdf7428eca46ec25df5ef14bc7e90120bdc267328 (patch)
tree33678e8a765a07b1f7e989232d025a2ea83198d3 /Documentation/technical/api-argv-array.txt
parentfd871b94f6d564864194befa10c621586b7b8bcf (diff)
Add argv_array_detach and argv_array_free_detached
Allow detaching of ownership of the argv_array's contents and add a function to free those detached argv_arrays later. This makes it possible to use argv_array efficiently with the exiting struct child_process which only contains a member char **argv. Add to documentation. Signed-off-by: Florian Achleitner <> Acked-by: David Michael Barr <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/technical/api-argv-array.txt')
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/technical/api-argv-array.txt b/Documentation/technical/api-argv-array.txt
index 1b7d8f1..6b97d6d 100644
--- a/Documentation/technical/api-argv-array.txt
+++ b/Documentation/technical/api-argv-array.txt
@@ -49,3 +49,11 @@ Functions
Free all memory associated with the array and return it to the
initial, empty state.
+ Detach the argv array from the `struct argv_array`, transfering
+ ownership of the allocated array and strings.
+ Free the memory allocated by a `struct argv_array` that was later
+ detached and is now no longer needed.