Skip to content

Commit 7af68ac

Browse files
committed
Restores missing step in objects.asc
Restores missing step: update cache to point to "new" test.txt (`1f7a7a472abf3dd9643fd615f6da379c4acb3e3a`) when building the tree `0155eb4229851634a0f03eb265b69f5a2d56f341`
1 parent e95aba0 commit 7af68ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

book/10-git-internals/sections/objects.asc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ You'll now create a new tree with the second version of `test.txt` and a new fil
188188
[source,console]
189189
----
190190
$ echo 'new file' > new.txt
191+
$ git update-index --cacheinfo 100644 \
192+
1f7a7a472abf3dd9643fd615f6da379c4acb3e3a test.txt
191193
$ git update-index test.txt
192194
$ git update-index --add new.txt
193195
----

0 commit comments

Comments
 (0)