diff options
author | Taylor Blau <me@ttaylorr.com> | 2020-04-13 22:04:08 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-15 09:20:26 -0700 |
commit | 4f027355f6b6b5b2ba69e23ff50cb7313d13dd70 (patch) | |
tree | e6719d8fa7afd9ff7c730aa895be861ab5332e93 /graph.h | |
parent | t/helper/test-read-graph.c: support commit-graph chains (diff) | |
download | tgif-4f027355f6b6b5b2ba69e23ff50cb7313d13dd70.tar.xz |
builtin/commit-graph.c: support for '--split[=<strategy>]'
With '--split', the commit-graph machinery writes new commits in another
incremental commit-graph which is part of the existing chain, and
optionally decides to condense the chain into a single commit-graph.
This is done to ensure that the asymptotic behavior of looking up a
commit in an incremental chain is not dominated by the number of
incrementals in that chain. It can be controlled by the '--max-commits'
and '--size-multiple' options.
In the next two commits, we will introduce additional splitting
strategies that can exert additional control over:
- when a split commit-graph is and isn't written, and
- when the existing commit-graph chain is discarded completely and
replaced with another graph
To prepare for this, make '--split' take an optional strategy (as in
'--split[=<strategy>]'), and add a new enum to describe which strategy
is being used. For now, no strategies are given, and the only enumerated
value is 'COMMIT_GRAPH_SPLIT_UNSPECIFIED', indicating the absence of a
strategy.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'graph.h')
0 files changed, 0 insertions, 0 deletions