Code

Squelsh output of update-index when loading the status view
authorJonas Fonseca <fonseca@diku.dk>
Fri, 4 Apr 2008 22:40:43 +0000 (00:40 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 4 Apr 2008 22:40:43 +0000 (00:40 +0200)
tig.c

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