Win32: simplify internal mingw_spawn* APIs
commit3e66e47b1b1baef859be79a12091fdbdd82492a8
authorKarsten Blees <blees@dcon.de>
Fri, 25 Nov 2011 20:33:17 +0000 (25 21:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jun 2014 17:56:47 +0000 (16 10:56 -0700)
tree96900a76dcc1bb65e49a84f4f46bceb3fd0318ac
parent570f1e6e1a7145efb4e80da9c711fcbc319f6b17
Win32: simplify internal mingw_spawn* APIs

The only public spawn function that needs to tweak the environment is
mingw_spawnvpe (called from start_command). Nevertheless, all internal
spawn* functions take an env parameter and needlessly pass the global
char **environ around. Remove the env parameter where it's not needed.

This removes the internal mingw_execve abstraction, which is no longer
needed.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c