X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-ls-files.c;h=f72eb854756f602e4d114964f4585bc5a8c55e20;hb=6d12acefd5ac0cd688bcc77470bb1d73859cdab1;hp=b48327db950e5d8a54045f4956fa92b7879227bc;hpb=2819854ec5013fc0958ea477fa49d53fc0faee80;p=git.git diff --git a/builtin-ls-files.c b/builtin-ls-files.c index b48327db9..f72eb8547 100644 --- a/builtin-ls-files.c +++ b/builtin-ls-files.c @@ -227,6 +227,8 @@ static void show_files(struct dir_struct *dir, const char *prefix) int dtype = ce_to_dtype(ce); if (excluded(dir, ce->name, &dtype) != dir->show_ignored) continue; + if (ce->ce_flags & CE_UPDATE) + continue; err = lstat(ce->name, &st); if (show_deleted && err) show_ce_entry(tag_removed, ce); @@ -329,7 +331,7 @@ void overlay_tree_on_cache(const char *tree_name, const char *prefix) if (prefix) { static const char *(matchbuf[2]); matchbuf[0] = prefix; - matchbuf [1] = NULL; + matchbuf[1] = NULL; match = matchbuf; } else match = NULL;