Sixth batch for 2.5 cycle
[gitweb.git] / wt-status.c
index 38cb165f124d610c789a8d82de42281c795111f7..33452f169dfca7a3cd4f15b1c3cdc91a3cf40735 100644 (file)
@@ -585,6 +585,8 @@ static void wt_status_collect_untracked(struct wt_status *s)
                        DIR_SHOW_OTHER_DIRECTORIES | DIR_HIDE_EMPTY_DIRECTORIES;
        if (s->show_ignored_files)
                dir.flags |= DIR_SHOW_IGNORED_TOO;
+       else
+               dir.untracked = the_index.untracked;
        setup_standard_excludes(&dir);
 
        fill_directory(&dir, &s->pathspec);