]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/commit-graph.c
commit-graph: add --split option to builtin
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 18 Jun 2019 18:14:28 +0000 (11:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2019 03:46:26 +0000 (20:46 -0700)
commit135a7123755bfdde05da18012bebd2776f82b26c
tree97fcac3256d9ed879948db7255c13457828b2bdc
parent6c622f9f0bbb38a23341dc4294f56d0d909b3d50
commit-graph: add --split option to builtin

Add a new "--split" option to the 'git commit-graph write' subcommand. This
option allows the optional behavior of writing a commit-graph chain.

The current behavior will add a tip commit-graph containing any commits that
are not in the existing commit-graph or commit-graph chain. Later changes
will allow merging the chain and expiring out-dated files.

Add a new test script (t5324-split-commit-graph.sh) that demonstrates this
behavior.

Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-graph.c
commit-graph.c
t/t5324-split-commit-graph.sh [new file with mode: 0755]