Turn the flags in struct dir_struct into a single variable
[gitweb.git] / wt-status.c
index 96ff2f8f564b907b9ef77bd2ea41b5e854a13085..f2eae20d89b71f384f727e72a1c520a3f1330df6 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);