summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2202654)
raw | patch | inline | side by side (parent: 2202654)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 20 Mar 2008 12:21:40 +0000 (13:21 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 20 Mar 2008 12:34:30 +0000 (13:34 +0100) |
tig.c | patch | blob | history |
index 1ae0a1e19c7f3226938d57b287fa327be37fa687..73aa9913c7a3a248975565850ac6ec1a0512f262 100644 (file)
--- a/tig.c
+++ b/tig.c
/* Don't show unmerged entries in the staged section. */
#define STATUS_DIFF_INDEX_CMD "git diff-index -z --diff-filter=ACDMRTXB --cached -M HEAD"
-#define STATUS_DIFF_FILES_CMD "git update-index -q --refresh && git diff-files -z"
+#define STATUS_DIFF_FILES_CMD "git diff-files -z"
#define STATUS_LIST_OTHER_CMD \
"git ls-files -z --others --exclude-per-directory=.gitignore"
return FALSE;
}
+ system("git update-index -q --refresh");
+
if (!status_run(view, STATUS_DIFF_INDEX_CMD, TRUE, LINE_STAT_STAGED) ||
!status_run(view, STATUS_DIFF_FILES_CMD, TRUE, LINE_STAT_UNSTAGED) ||
!status_run(view, cmd, FALSE, LINE_STAT_UNTRACKED))