summaryrefslogtreecommitdiffstats
path: root/builtin/ls-files.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-11 00:56:17 +0200
committerJunio C Hamano <gitster@pobox.com>2011-10-11 00:56:17 +0200
commitca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4 (patch)
tree95b3ad81be30f2d56be61e1a68c06ea6a450f93d /builtin/ls-files.c
parentMerge branch 'jn/maint-http-error-message' (diff)
parentrename pathspec_prefix() to common_prefix() and move to dir.[ch] (diff)
downloadgit-ca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4.tar.xz
git-ca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4.zip
Merge branch 'cb/common-prefix-unification'
* cb/common-prefix-unification: rename pathspec_prefix() to common_prefix() and move to dir.[ch] consolidate pathspec_prefix and common_prefix remove prefix argument from pathspec_prefix
Diffstat (limited to 'builtin/ls-files.c')
-rw-r--r--builtin/ls-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index e8a800d3ac..7cff175745 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 */