Skip to content

Commit 5f3aa19

Browse files
Lukas_SandströmJunio C Hamano
authored andcommitted
Change 'cache' to 'index' in the docs
This patch makes the documentation refer to the index as index instead of cache, but some references still remain. (e.g. git-update-index.txt) Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 3cab359 commit 5f3aa19

17 files changed

+71
-71
lines changed

Documentation/diff-format.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ git-diff-index <tree-ish>::
88
compares the <tree-ish> and the files on the filesystem.
99

1010
git-diff-index --cached <tree-ish>::
11-
compares the <tree-ish> and the cache.
11+
compares the <tree-ish> and the index.
1212

1313
git-diff-tree [-r] <tree-ish-1> <tree-ish-2> [<pattern>...]::
1414
compares the trees named by the two arguments.
1515

1616
git-diff-files [<pattern>...]::
17-
compares the cache and the files on the filesystem.
17+
compares the index and the files on the filesystem.
1818

1919

2020
An output line is formatted this way:
@@ -47,7 +47,7 @@ That is, from the left to the right:
4747
. an LF or a NUL when '-z' option is used, to terminate the record.
4848

4949
<sha1> is shown as all 0's if a file is new on the filesystem
50-
and it is out of sync with the cache.
50+
and it is out of sync with the index.
5151

5252
Example:
5353

@@ -104,7 +104,7 @@ where:
104104
The file parameters can point at the user's working file
105105
(e.g. `new-file` in "git-diff-files"), `/dev/null` (e.g. `old-file`
106106
when a new file is added), or a temporary file (e.g. `old-file` in the
107-
cache). 'GIT_EXTERNAL_DIFF' should not worry about unlinking the
107+
index). 'GIT_EXTERNAL_DIFF' should not worry about unlinking the
108108
temporary file --- it is removed when 'GIT_EXTERNAL_DIFF' exits.
109109

110110
For a path that is unmerged, 'GIT_EXTERNAL_DIFF' is called with 1

Documentation/diff-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<orderfile>, which has one shell glob pattern per line.
5151

5252
-R::
53-
Swap two inputs; that is, show differences from cache or
53+
Swap two inputs; that is, show differences from index or
5454
on-disk file to tree contents.
5555

5656
For more detailed explanation on these common options, see also

Documentation/git-checkout-index.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git-checkout-index(1)
33

44
NAME
55
----
6-
git-checkout-index - Copy files from the cache to the working directory
6+
git-checkout-index - Copy files from the index to the working directory
77

88

99
SYNOPSIS
@@ -13,23 +13,23 @@ SYNOPSIS
1313

1414
DESCRIPTION
1515
-----------
16-
Will copy all files listed from the cache to the working directory
16+
Will copy all files listed from the index to the working directory
1717
(not overwriting existing files).
1818

1919
OPTIONS
2020
-------
2121
-u::
2222
update stat information for the checked out entries in
23-
the cache file.
23+
the index file.
2424

2525
-q::
26-
be quiet if files exist or are not in the cache
26+
be quiet if files exist or are not in the index
2727

2828
-f::
2929
forces overwrite of existing files
3030

3131
-a::
32-
checks out all files in the cache. Cannot be used
32+
checks out all files in the index. Cannot be used
3333
together with explicit filenames.
3434

3535
-n::
@@ -57,7 +57,7 @@ supposed to be able to do things like:
5757

5858
which will force all existing `*.h` files to be replaced with their
5959
cached copies. If an empty command line implied "all", then this would
60-
force-refresh everything in the cache, which was not the point.
60+
force-refresh everything in the index, which was not the point.
6161

6262
To update and refresh only the files already checked out:
6363

@@ -74,7 +74,7 @@ desired tree into the index, and do a
7474

7575
git-checkout-index --prefix=git-export-dir/ -a
7676

77-
and git-checkout-index will "export" the cache into the specified
77+
and git-checkout-index will "export" the index into the specified
7878
directory.
7979

8080
NOTE The final "/" is important. The exported name is literally just

Documentation/git-cvsimport.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ OPTIONS
3535

3636
-i::
3737
Import-only: don't perform a checkout after importing. This option
38-
ensures the working directory and cache remain untouched and will
38+
ensures the working directory and index remain untouched and will
3939
not create them if they do not exist.
4040

4141
-k::

Documentation/git-diff-files.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git-diff-files(1)
33

44
NAME
55
----
6-
git-diff-files - Compares files in the working tree and the cache
6+
git-diff-files - Compares files in the working tree and the index
77

88

99
SYNOPSIS
@@ -12,9 +12,9 @@ SYNOPSIS
1212

1313
DESCRIPTION
1414
-----------
15-
Compares the files in the working tree and the cache. When paths
15+
Compares the files in the working tree and the index. When paths
1616
are specified, compares only those named paths. Otherwise all
17-
entries in the cache are compared. The output format is the
17+
entries in the index are compared. The output format is the
1818
same as "git-diff-index" and "git-diff-tree".
1919

2020
OPTIONS

Documentation/git-diff-index.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git-diff-index(1)
33

44
NAME
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

99
SYNOPSIS
@@ -13,10 +13,10 @@ SYNOPSIS
1313
DESCRIPTION
1414
-----------
1515
Compares 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
1717
ignoring the stat state of the file on disk. When paths are
1818
specified, compares only those named paths. Otherwise all
19-
entries in the cache are compared.
19+
entries in the index are compared.
2020

2121
OPTIONS
2222
-------
@@ -49,11 +49,11 @@ Cached Mode
4949
-----------
5050
If '--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

5555
For 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
5858
object 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
9292
you *could* commit. Again, the output matches the "git-diff-tree -r"
9393
output 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
9696
a backing store thing for it, and we use the magic "all-zero" sha1 to
9797
show that. So let's say that you have edited `kernel/sched.c`, but
9898
have 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
110110
actually 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
112112
touched 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

115115
NOTE: You can have a mixture of files show up as "has been updated"
116116
and "is still dirty in the working directory" together. You can always

Documentation/git-fsck-objects.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ index file and all SHA1 references in .git/refs/* as heads.
3333
Report tags.
3434

3535
--cache::
36-
Consider any object recorded in the cache also as a head node for
36+
Consider any object recorded in the index also as a head node for
3737
an unreachability trace.
3838

3939
--standalone::
@@ -125,7 +125,7 @@ GIT_OBJECT_DIRECTORY::
125125
used to specify the object database root (usually $GIT_DIR/objects)
126126

127127
GIT_INDEX_FILE::
128-
used to specify the index file of the cache
128+
used to specify the index file of the index
129129

130130
GIT_ALTERNATE_OBJECT_DIRECTORIES::
131131
used to specify additional object database roots (usually unset)

Documentation/git-hash-object.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Computes the object ID value for an object with specified type
1616
with the contents of the named file (which can be outside of the
1717
work tree), and optionally writes the resulting object into the
1818
object database. Reports its object ID to its standard output.
19-
This is used by "git-cvsimport" to update the cache
19+
This is used by "git-cvsimport" to update the index
2020
without modifying files in the work tree. When <type> is not
2121
specified, it defaults to "blob".
2222

Documentation/git-ls-files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git-ls-files(1)
33

44
NAME
55
----
6-
git-ls-files - Information about files in the cache/working directory
6+
git-ls-files - Information about files in the index/working directory
77

88

99
SYNOPSIS

Documentation/git-merge-index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SYNOPSIS
1212

1313
DESCRIPTION
1414
-----------
15-
This looks up the <file>(s) in the cache and, if there are any merge
15+
This looks up the <file>(s) in the index and, if there are any merge
1616
entries, passes the SHA1 hash for those files as arguments 1, 2, 3 (empty
1717
argument if no file), and <file> as argument 4. File modes for the three
1818
files are passed as arguments 5, 6 and 7.
@@ -23,7 +23,7 @@ OPTIONS
2323
Interpret all following arguments as filenames.
2424

2525
-a::
26-
Run merge against all files in the cache that need merging.
26+
Run merge against all files in the index that need merging.
2727

2828
-o::
2929
Instead of stopping at the first failed merge, do all of them

0 commit comments

Comments
 (0)