Re: [GSoC][PATCH v2 5/7] sequencer: add a new function to silence a command, except if it fails.

2018-07-03 Thread Junio C Hamano
Alban Gruin writes: > Subject: Re: [GSoC][PATCH v2 5/7] sequencer: add a new function to silence a > command, except if it fails. Lose the full-stop at the end. > This adds a new function, run_command_silent_on_success(), to > redirect the stdout and stderr of a command to a strbuf, and then

[GSoC][PATCH v2 5/7] sequencer: add a new function to silence a command, except if it fails.

2018-07-02 Thread Alban Gruin
This adds a new function, run_command_silent_on_success(), to redirect the stdout and stderr of a command to a strbuf, and then to run that command. This strbuf is printed only if the command fails. It is functionnaly similar to output() from git-rebase.sh. run_git_commit() is then refactored to