@@ -3,7 +3,7 @@ git-diff-index(1)
33
44NAME
55----
6- git-diff-index - Compares content and mode of blobs between the cache and repository
6+ git-diff-index - Compares content and mode of blobs between the index and repository
77
88
99SYNOPSIS
@@ -13,10 +13,10 @@ SYNOPSIS
1313DESCRIPTION
1414-----------
1515Compares the content and mode of the blobs found via a tree
16- object with the content of the current cache and, optionally
16+ object with the content of the current index and, optionally
1717ignoring the stat state of the file on disk. When paths are
1818specified, compares only those named paths. Otherwise all
19- entries in the cache are compared.
19+ entries in the index are compared.
2020
2121OPTIONS
2222-------
@@ -49,11 +49,11 @@ Cached Mode
4949-----------
5050If '--cached' is specified, it allows you to ask:
5151
52- show me the differences between HEAD and the current cache
52+ show me the differences between HEAD and the current index
5353 contents (the ones I'd write with a "git-write-tree")
5454
5555For example, let's say that you have worked on your working directory, updated
56- some files in the cache and are ready to commit. You want to see eactly
56+ some files in the index and are ready to commit. You want to see eactly
5757*what* you are going to commit is without having to write a new tree
5858object and compare it that way, and to do that, you just do
5959
@@ -92,7 +92,7 @@ which is obviously a very useful question too, since that tells you what
9292you *could* commit. Again, the output matches the "git-diff-tree -r"
9393output to a tee, but with a twist.
9494
95- The twist is that if some file doesn't match the cache , we don't have
95+ The twist is that if some file doesn't match the index , we don't have
9696a backing store thing for it, and we use the magic "all-zero" sha1 to
9797show that. So let's say that you have edited `kernel/sched.c`, but
9898have not actually done a "git-update-index" on it yet - there is no
@@ -110,7 +110,7 @@ NOTE: As with other commands of this type, "git-diff-index" does not
110110actually look at the contents of the file at all. So maybe
111111`kernel/sched.c` hasn't actually changed, and it's just that you
112112touched it. In either case, it's a note that you need to
113- "git-upate-cache " it to make the cache be in sync.
113+ "git-upate-index " it to make the index be in sync.
114114
115115NOTE: You can have a mixture of files show up as "has been updated"
116116and "is still dirty in the working directory" together. You can always
0 commit comments