Turn the flags in struct dir_struct into a single variable
[gitweb.git] / builtin-add.c
index ac98c8354d84a7f556c22c53fbe9007832ac4346..c986a3ada1ad09f653b734e770ee871a255c5086 100644 (file)
@@ -104,7 +104,7 @@ static void fill_directory(struct dir_struct *dir, const char **pathspec,
        /* Set up the default git porcelain excludes */
        memset(dir, 0, sizeof(*dir));
        if (!ignored_too) {
-               dir->collect_ignored = 1;
+               dir->flags |= DIR_COLLECT_IGNORED;
                setup_standard_excludes(dir);
        }