summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-04-10 12:56:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-11 01:43:02 (GMT)
commit7547b95b4fbb8591726b1d9381c176cc27fc6aea (patch)
tree0de2b763a40f4c07eee2ddbf40fd50eaf82dc996 /Documentation
parent3d5df01b5e42416a59e857135e932bbdd8cc3ba0 (diff)
downloadgit-7547b95b4fbb8591726b1d9381c176cc27fc6aea.zip
git-7547b95b4fbb8591726b1d9381c176cc27fc6aea.tar.gz
git-7547b95b4fbb8591726b1d9381c176cc27fc6aea.tar.bz2
commit-graph: implement "--append" option
Teach git-commit-graph to add all commits from the existing commit-graph file to the file about to be written. This should be used when adding new commits without performing garbage collection. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-commit-graph.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/git-commit-graph.txt b/Documentation/git-commit-graph.txt
index 442ac24..4c97b55 100644
--- a/Documentation/git-commit-graph.txt
+++ b/Documentation/git-commit-graph.txt
@@ -43,6 +43,9 @@ With the `--stdin-commits` option, generate the new commit graph by
walking commits starting at the commits specified in stdin as a list
of OIDs in hex, one OID per line. (Cannot be combined with
--stdin-packs.)
++
+With the `--append` option, include all commits that are present in the
+existing commit-graph file.
'read'::
@@ -72,6 +75,13 @@ $ echo <pack-index> | git commit-graph write --stdin-packs
$ git show-ref -s | git commit-graph write --stdin-commits
------------------------------------------------
+* Write a graph file containing all commits in the current
+* commit-graph file along with those reachable from HEAD.
++
+------------------------------------------------
+$ git rev-parse HEAD | git commit-graph write --stdin-commits --append
+------------------------------------------------
+
* Read basic information from the commit-graph file.
+
------------------------------------------------