Remove unnecessary argc parameter from run_command_v.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 31 Dec 2006 02:55:15 +0000 (21:55 -0500)
committerJunio C Hamano <junkio@cox.net>
Sun, 31 Dec 2006 06:22:14 +0000 (22:22 -0800)
commit9b0b50936ec76ad8e582d18d5bf54bc81c685e9b
tree1599e84bb2e53adbce3728f62d1c3c38d815a1e9
parentad1a382fbb3ecb1bb017854a470816c815cc46c9
Remove unnecessary argc parameter from run_command_v.

The argc parameter is never used by the run_command_v family of
functions.  Instead they require that the passed argv[] be NULL
terminated so they can rely on the operating system's execvp
function to correctly pass the arguments to the new process.

Making the caller pass the argc is just confusing, as the caller
could be mislead into believing that the argc might take precendece
over the argv, or that the argv does not need to be NULL terminated.
So goodbye argc.  Don't come back.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-push.c
receive-pack.c
run-command.c
run-command.h