remove prefix argument from pathspec_prefix
[gitweb.git] / builtin / ls-files.c
index 0e98bff0c46035162fc424418cc434b52299c1cc..19e53cc881b41881ff5f92581ce2f8541b399ffa 100644 (file)
@@ -541,7 +541,7 @@ int cmd_ls_files(int argc, const char **argv, const char *cmd_prefix)
                strip_trailing_slash_from_submodules();
 
        /* Find common prefix for all pathspec's */
-       max_prefix = pathspec_prefix(prefix, pathspec);
+       max_prefix = pathspec_prefix(pathspec);
        max_prefix_len = max_prefix ? strlen(max_prefix) : 0;
 
        /* Treat unmatching pathspec elements as errors */