summaryrefslogtreecommitdiff
path: root/builtin-ls-files.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-11-16 00:49:20 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-11-16 00:49:20 -0800
commitbf31115312aefd36f1571379842eebebf34dcb55 (patch)
tree20f326130a1a40f25ac5c82b0adae7854b0b346f /builtin-ls-files.c
parentMerge branch 'bc/maint-keep-pack' (diff)
parentTeach ls-files --with-tree=<tree> to work with options other than -c (diff)
downloadtgif-bf31115312aefd36f1571379842eebebf34dcb55.tar.xz
Merge branch 'maint'
* maint: Teach ls-files --with-tree=<tree> to work with options other than -c builtin-ls-files.c: coding style fix.
Diffstat (limited to 'builtin-ls-files.c')
-rw-r--r--builtin-ls-files.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin-ls-files.c b/builtin-ls-files.c
index b48327db95..f72eb85475 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;