Skip to content

Commit bf31115

Browse files
committed
Merge branch 'maint'
* maint: Teach ls-files --with-tree=<tree> to work with options other than -c builtin-ls-files.c: coding style fix.
2 parents c9d8563 + 4b4e26d commit bf31115

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builtin-ls-files.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ static void show_files(struct dir_struct *dir, const char *prefix)
227227
int dtype = ce_to_dtype(ce);
228228
if (excluded(dir, ce->name, &dtype) != dir->show_ignored)
229229
continue;
230+
if (ce->ce_flags & CE_UPDATE)
231+
continue;
230232
err = lstat(ce->name, &st);
231233
if (show_deleted && err)
232234
show_ce_entry(tag_removed, ce);
@@ -329,7 +331,7 @@ void overlay_tree_on_cache(const char *tree_name, const char *prefix)
329331
if (prefix) {
330332
static const char *(matchbuf[2]);
331333
matchbuf[0] = prefix;
332-
matchbuf [1] = NULL;
334+
matchbuf[1] = NULL;
333335
match = matchbuf;
334336
} else
335337
match = NULL;

0 commit comments

Comments
 (0)