• J
    run_command: report failure to execute the program, but optionally don't · c024beb5
    Johannes Sixt 提交于
    In the case where a program was not found, it was still the task of the
    caller to report an error to the user. Usually, this is an interesting case
    but only few callers actually reported a specific error (though many call
    sites report a generic error message regardless of the cause).
    
    With this change the error is reported by run_command, but since there is
    one call site in git.c that does not want that, an option is added to
    struct child_process, which is used to turn the error off.
    Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    c024beb5
run-command.h 2.6 KB