diff options
author | Alban Gruin <alban.gruin@gmail.com> | 2018-08-10 18:51:32 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-10 11:56:22 -0700 |
commit | 34bec2c458474bdc05ced34d6789ee6c9fb7f051 (patch) | |
tree | 0251fad07d977106ba561bfcae2a657b27cac169 /builtin/upload-pack.c | |
parent | rebase -i: rewrite the edit-todo functionality in C (diff) | |
download | tgif-34bec2c458474bdc05ced34d6789ee6c9fb7f051.tar.xz |
sequencer: add a new function to silence a command, except if it fails
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 use of
run_command_silent_on_success().
Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/upload-pack.c')
0 files changed, 0 insertions, 0 deletions