]> git.ipfire.org Git - thirdparty/git.git/commit - run-command.h
run-command: factor out child_process_clear()
authorRené Scharfe <l.s.r@web.de>
Sat, 24 Oct 2015 12:11:27 +0000 (14:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Nov 2015 23:01:00 +0000 (15:01 -0800)
commit2d71608ec0b6d098ed7c8c914fb7004b28349995
tree7f388e56b6831f6afb47ef5b09fa776b40ad3f00
parenta2558fb8e1e387b630312311e1d22c95663da5d0
run-command: factor out child_process_clear()

Avoid duplication by moving the code to release allocated memory for
arguments and environment to its own function, child_process_clear().
Export it to provide a counterpart to child_process_init().

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-run-command.txt
run-command.c
run-command.h