Skip to content
  • Shawn O. Pearce's avatar
    Remove unnecessary argc parameter from run_command_v. · 9b0b5093
    Shawn O. Pearce authored
    
    
    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: default avatarShawn O. Pearce <spearce@spearce.org>
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    9b0b5093