summaryrefslogtreecommitdiff
path: root/Documentation/git-submodule.txt
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-05-15 04:34:18 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-05-15 09:49:11 -0700
commite0ab2ac6c553cbba5d0275cfd35beb3351cae034 (patch)
tree0ef63c5251d93f9b6760d5ff84a0fde46875e003 /Documentation/git-submodule.txt
parentgit_connect: use argv_array (diff)
downloadtgif-e0ab2ac6c553cbba5d0275cfd35beb3351cae034.tar.xz
get_helper: use run-command's internal argv_array
The get_helper functions dynamically allocates an argv_array, feeds it to start_command, and then returns. We then have to later clean up the memory manually after calling finish_command. We can make this simpler by just using run-command's internal argv_array, which handles cleanup for us. This also prevents a memory leak in the case that transport_take_over is used, in which case we free the child in finish_connect, which does not manually free the array. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-submodule.txt')
0 files changed, 0 insertions, 0 deletions