Skip to content

Commit 993d708

Browse files
rybakgitster
authored andcommitted
t3060: fix mention of function prune_index
Commit [1] added tests which trigger function prune_cache. The comments in these tests, however, incorrectly call it "prune_path". Since then, function "prune_cache" has been renamed to "prune_index" in commit [2]. Later still in commit [3], the_index singleton, which is also mentioned in a comment, stopped being used directly with function "prune_index". Fix mentions of function "prune_index" and the struct it changes in comments in file "t3060-ls-files-with-tree.sh". [1] 54e1abc (Add test case for ls-files --with-tree, 2007-10-03) [2] 6510ae1 (ls-files: convert prune_cache to take an index, 2017-06-12) [3] 188dce1 (ls-files: use repository object, 2017-06-22) Signed-off-by: Andrei Rybak <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6369acd commit 993d708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t3060-ls-files-with-tree.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test_expect_success 'setup' '
4040
git commit -a -m "remove them all" &&
4141
4242
# The bug also requires some entry before our directory so that
43-
# prune_path will modify the_index.cache
43+
# prune_index will modify the_repository->index.cache
4444
4545
mkdir a_directory_that_sorts_before_sub &&
4646
>a_directory_that_sorts_before_sub/file &&
@@ -56,7 +56,7 @@ test_expect_success 'usage' '
5656
'
5757

5858
test_expect_success 'git ls-files --with-tree should succeed from subdir' '
59-
# We have to run from a sub-directory to trigger prune_path
59+
# We have to run from a sub-directory to trigger prune_index
6060
# Then we finally get to run our --with-tree test
6161
(
6262
cd sub &&

0 commit comments

Comments
 (0)