]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/add.c
dir: convert fill_directory to take an index
[thirdparty/git.git] / builtin / add.c
index 0b52aeced3bc40276e11c7cc829eb5901191e8e1..36cad00ae6ddad2b181da0b51294e1fe86aef788 100644 (file)
@@ -400,7 +400,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
                }
 
                /* This picks up the paths that are not tracked */
-               baselen = fill_directory(&dir, &pathspec);
+               baselen = fill_directory(&dir, &the_index, &pathspec);
                if (pathspec.nr)
                        seen = prune_directory(&dir, &pathspec, baselen);
        }