Add run_command_v_opt_cd: chdir into a directory before exec
commit1568fea01eb25a293f8dae570a31ca34d41b5442
authorAlex Riesen <raa.lkml@gmail.com>
Tue, 22 May 2007 21:48:23 +0000 (22 23:48 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 24 May 2007 05:38:44 +0000 (23 22:38 -0700)
tree9155915d612621b41c4a1869881846feea94711a
parent98ee8187e4e331716be0797169ba9ddbb26efe56
Add run_command_v_opt_cd: chdir into a directory before exec

It can make code simplier (no need to preserve cwd) and safer
(no chance the cwd of the current process is accidentally forgotten).

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
run-command.c
run-command.h