X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fls-files.c;h=7cff175745d680d9cde24280e569b4f513d28673;hb=5fbdb9c2e8cc7226d9a9e7de5ad09ac5f0a0b906;hp=e8a800d3ac42bfce328bea786d8e1efa4ff695c7;hpb=5fbef463a144fdb84a5b211e87d1d4bf67d61d4a;p=git.git diff --git a/builtin/ls-files.c b/builtin/ls-files.c index e8a800d3a..7cff17574 100644 --- a/builtin/ls-files.c +++ b/builtin/ls-files.c @@ -545,7 +545,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 = common_prefix(pathspec); max_prefix_len = max_prefix ? strlen(max_prefix) : 0; /* Treat unmatching pathspec elements as errors */