Code

Squelsh output of update-index when loading the status view (part II)
authorJonas Fonseca <fonseca@diku.dk>
Tue, 8 Apr 2008 14:50:50 +0000 (16:50 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 8 Apr 2008 23:07:23 +0000 (01:07 +0200)
Also include messages from stdout.

tig.c

diff --git a/tig.c b/tig.c
index 5359030e508dc40a5d1aae9a68704c9f6abdd960..a3d22320943ac45ecb2dc738868d2d7629096a0b 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -3977,7 +3977,7 @@ status_open(struct view *view)
                        return FALSE;
        }
 
-       system("git update-index -q --refresh 2>/dev/null");
+       system("git update-index -q --refresh >/dev/null 2>/dev/null");
 
        if (!status_run(view, indexcmd, indexstatus, LINE_STAT_STAGED) ||
            !status_run(view, STATUS_DIFF_FILES_CMD, 0, LINE_STAT_UNSTAGED) ||