ls-files: factor out tag calculation
[gitweb.git] / builtin / commit.c
index da1ba4c86205ca55ae1880cb768b093b101bd85a..78ef319a2418066a34f1f3c47049b7500f3f0f07 100644 (file)
@@ -253,7 +253,8 @@ static int list_paths(struct string_list *list, const char *with_tree,
 
        if (with_tree) {
                char *max_prefix = common_prefix(pattern);
-               overlay_tree_on_cache(with_tree, max_prefix ? max_prefix : prefix);
+               overlay_tree_on_index(&the_index, with_tree,
+                                     max_prefix ? max_prefix : prefix);
                free(max_prefix);
        }