]> git.ipfire.org Git - thirdparty/git.git/commitdiff
index-format: use 'cache tree' over 'cached tree'
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 7 Jan 2021 16:32:07 +0000 (16:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Jan 2021 07:04:38 +0000 (23:04 -0800)
The index has a "cache tree" extension. This corresponds to a
significant API implemented in cache-tree.[ch]. However, there are a few
places that refer to this erroneously as "cached tree". These are rare,
but notably the index-format.txt file itself makes this error.

The only other reference is in t7104-reset-hard.sh.

Reported-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/index-format.txt
t/t7104-reset-hard.sh

index 69edf46c031683a7288ec5efd3aaf499fb8bda55..c71314731ec984932331aac5b7b08d466b34957b 100644 (file)
@@ -26,7 +26,7 @@ Git index format
      Extensions are identified by signature. Optional extensions can
      be ignored if Git does not understand them.
 
-     Git currently supports cached tree and resolve undo extensions.
+     Git currently supports cache tree and resolve undo extensions.
 
      4-byte extension signature. If the first byte is 'A'..'Z' the
      extension is optional and can be ignored.
@@ -136,9 +136,9 @@ Git index format
 
 == Extensions
 
-=== Cached tree
+=== Cache tree
 
-  Cached tree extension contains pre-computed hashes for trees that can
+  Cache tree extension contains pre-computed hashes for trees that can
   be derived from the index. It helps speed up tree object generation
   from index for a new commit.
 
index 16faa0781373bb3769ce9f0fa0a09be8c2b2ed81..7948ec392b3599a3884d97ae21f5deece84e638c 100755 (executable)
@@ -33,7 +33,7 @@ test_expect_success 'reset --hard should restore unmerged ones' '
 
 '
 
-test_expect_success 'reset --hard did not corrupt index or cached-tree' '
+test_expect_success 'reset --hard did not corrupt index or cache-tree' '
 
        T=$(git write-tree) &&
        rm -f .git/index &&