author | Steffen Prohaska <prohaska@zib.de> | |
Mon, 28 Jul 2008 05:50:27 +0000 (07:50 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 29 Jul 2008 06:02:11 +0000 (23:02 -0700) | ||
commit | 4933e5ebdefdb88841275132ef358e6649963751 | |
tree | 70b8403dfb2f6deec529192d343dd61f485c08e5 | tree | snapshot |
parent | d2761895144b6fabcbe1f3bd40d6c6798914b518 | commit | diff |
Refactor, adding prepare_git_cmd(const char **argv)
prepare_git_cmd(const char **argv) adds a first entry "git" to
the array argv. The new array is allocated on the heap. It's
the caller's responsibility to release it with free(). The code
was already present in execv_git_cmd() but could not be used from
outside. Now it can also be called for preparing the command list
in the MinGW codepath in run-command.c.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
prepare_git_cmd(const char **argv) adds a first entry "git" to
the array argv. The new array is allocated on the heap. It's
the caller's responsibility to release it with free(). The code
was already present in execv_git_cmd() but could not be used from
outside. Now it can also be called for preparing the command list
in the MinGW codepath in run-command.c.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
exec_cmd.c | diff | blob | history | |
exec_cmd.h | diff | blob | history |