From: Jonas Fonseca Date: Tue, 22 Aug 2006 22:12:57 +0000 (+0200) Subject: Silence stderr for all view commands X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8fee6614be3b0fe4b1f65e5746be05b67737a22a;p=tig.git Silence stderr for all view commands When quickly scrolling through commits with the split diff view, they was spewing 'Broken pipe' messages onto the screen. --- diff --git a/tig.c b/tig.c index f110dae..b2e1a36 100644 --- a/tig.c +++ b/tig.c @@ -74,13 +74,13 @@ static size_t utf8_length(const char *string, size_t max_width, int *coloffset, "git ls-remote . 2>/dev/null" #define TIG_DIFF_CMD \ - "git show --patch-with-stat --find-copies-harder -B -C %s" + "git show --patch-with-stat --find-copies-harder -B -C %s 2>/dev/null" #define TIG_LOG_CMD \ - "git log --cc --stat -n100 %s" + "git log --cc --stat -n100 %s 2>/dev/null" #define TIG_MAIN_CMD \ - "git log --topo-order --pretty=raw %s" + "git log --topo-order --pretty=raw %s 2>/dev/null" /* XXX: Needs to be defined to the empty string. */ #define TIG_HELP_CMD ""