Merge branch 'jc/maint-1.6.0-blame-s'
[gitweb.git] / wt-status.c
index dd87339ff7b0faeb60091b087e5839c3cce9898c..929b00f59285c21a07df98700c23171505f5cddb 100644 (file)
@@ -250,10 +250,9 @@ static void wt_status_print_untracked(struct wt_status *s)
 
        memset(&dir, 0, sizeof(dir));
 
-       if (!s->untracked) {
-               dir.show_other_directories = 1;
-               dir.hide_empty_directories = 1;
-       }
+       if (!s->untracked)
+               dir.flags |=
+                       DIR_SHOW_OTHER_DIRECTORIES | DIR_HIDE_EMPTY_DIRECTORIES;
        setup_standard_excludes(&dir);
 
        read_directory(&dir, ".", "", 0, NULL);