summaryrefslogtreecommitdiff
path: root/progress.c
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2017-02-03 03:48:26 +0100
committerJunio C Hamano <gitster@pobox.com>2017-02-03 22:18:41 -0800
commite15098a314aa15b207bb08a11058855baaedbc37 (patch)
tree8e2573e26d18ed403ec41ac7b57e43edfbb97dea /progress.c
parent1cd23e9e0568eca4f6d2d3c6228942acd937da11 (diff)
downloadgit-e15098a314aa15b207bb08a11058855baaedbc37.tar.gz
completion: consolidate silencing errors from git commands
Outputting error messages during completion is bad: they disrupt the command line, can't be deleted, and the user is forced to Ctrl-C and start over most of the time. We already silence stderr of many git commands in our Bash completion script, but there are still some in there that can spew error messages when something goes wrong. We could add the missing stderr redirections to all the remaining places, but instead let's leverage that git commands are now executed through the previously introduced __git() wrapper function, and redirect standard error to /dev/null only in that function. This way we need only one redirection to take care of errors from almost all git commands. Redirecting standard error of the __git() wrapper function thus became redundant, remove them. The exceptions, i.e. the repo-independent git executions and those in the __gitdir() function that don't go through __git() already have their standard error silenced. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'progress.c')
0 files changed, 0 insertions, 0 deletions