X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fls-files.c;h=7cff175745d680d9cde24280e569b4f513d28673;hb=c427b211b3f5d3f967e5fc7abd526b02f83a7246;hp=e8a800d3ac42bfce328bea786d8e1efa4ff695c7;hpb=614583fa233afd8f7fb8ed33aa409054ee21e1c4;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 */