Skip to content

Commit

Permalink
Doc: refer to the "commit-graph file" with dash
Browse files Browse the repository at this point in the history
The file processed by `git commit-graph` is referred to as the
"commit-graph file", also with a dash. We have a few references to the
"commit graph file", though, without the dash. These occur in
git-commit-graph.txt as well as in Doc/technical/commit-graph.txt. Fix
them.

Do not change the references to the "commit graph" (without "... file")
as a data structure.

Signed-off-by: Martin Ågren <[email protected]>
Reviewed-by: Derrick Stolee <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Martin Ågren authored and gitster committed Sep 27, 2018
1 parent 4893d71 commit 4c39944
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Documentation/git-commit-graph.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ git-commit-graph(1)

NAME
----
git-commit-graph - Write and verify Git commit graph files
git-commit-graph - Write and verify Git commit-graph files


SYNOPSIS
Expand All @@ -17,24 +17,24 @@ SYNOPSIS
DESCRIPTION
-----------

Manage the serialized commit graph file.
Manage the serialized commit-graph file.


OPTIONS
-------
--object-dir::
Use given directory for the location of packfiles and commit graph
Use given directory for the location of packfiles and commit-graph
file. This parameter exists to specify the location of an alternate
that only has the objects directory, not a full `.git` directory. The
commit graph file is expected to be at `<dir>/info/commit-graph` and
commit-graph file is expected to be at `<dir>/info/commit-graph` and
the packfiles are expected to be in `<dir>/pack`.


COMMANDS
--------
'write'::

Write a commit graph file based on the commits found in packfiles.
Write a commit-graph file based on the commits found in packfiles.
+
With the `--stdin-packs` option, generate the new commit graph by
walking objects only in the specified pack-indexes. (Cannot be combined
Expand Down Expand Up @@ -66,7 +66,7 @@ database. Used to check for corrupted data.
EXAMPLES
--------

* Write a commit graph file for the packed commits in your local `.git`
* Write a commit-graph file for the packed commits in your local `.git`
directory.
+
------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions Documentation/technical/commit-graph.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ There are two main costs here:
1. Decompressing and parsing commits.
2. Walking the entire graph to satisfy topological order constraints.

The commit graph file is a supplemental data structure that accelerates
The commit-graph file is a supplemental data structure that accelerates
commit graph walks. If a user downgrades or disables the 'core.commitGraph'
config setting, then the existing ODB is sufficient. The file is stored
as "commit-graph" either in the .git/objects/info directory or in the info
directory of an alternate.

The commit graph file stores the commit graph structure along with some
The commit-graph file stores the commit graph structure along with some
extra metadata to speed up graph walks. By listing commit OIDs in lexi-
cographic order, we can identify an integer position for each commit and
refer to the parents of a commit using those integer positions. We use
Expand Down Expand Up @@ -103,7 +103,7 @@ that of a parent.
Design Details
--------------

- The commit graph file is stored in a file named 'commit-graph' in the
- The commit-graph file is stored in a file named 'commit-graph' in the
.git/objects/info directory. This could be stored in the info directory
of an alternate.

Expand All @@ -127,7 +127,7 @@ Future Work
- 'log --topo-order'
- 'tag --merged'

- A server could provide a commit graph file as part of the network protocol
- A server could provide a commit-graph file as part of the network protocol
to avoid extra calculations by clients. This feature is only of benefit if
the user is willing to trust the file, because verifying the file is correct
is as hard as computing it from scratch.
Expand Down

0 comments on commit 4c39944

Please sign in to comment.