diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2019-06-18 11:14:25 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-19 20:46:26 -0700 |
commit | 5c84b3396c73382eb49285b4e4bbb1bf82be3a9c (patch) | |
tree | c7a49e92ec1657183c5b51ddc4bde481d3a378f9 /Documentation/technical/commit-graph-format.txt | |
parent | commit-graph: rename commit_compare to oid_compare (diff) | |
download | tgif-5c84b3396c73382eb49285b4e4bbb1bf82be3a9c.tar.xz |
commit-graph: load commit-graph chains
Prepare the logic for reading a chain of commit-graphs.
First, look for a file at $OBJDIR/info/commit-graph. If it exists,
then use that file and stop.
Next, look for the chain file at $OBJDIR/info/commit-graphs/commit-graph-chain.
If this file exists, then load the hash values as line-separated values in that
file and load $OBJDIR/info/commit-graphs/graph-{hash[i]}.graph for each hash[i]
in that file. The file is given in order, so the first hash corresponds to the
"base" file and the final hash corresponds to the "tip" file.
This implementation assumes that all of the graph-{hash}.graph files are in
the same object directory as the commit-graph-chain file. This will be updated
in a future change. This change is purposefully simple so we can isolate the
different concerns.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/commit-graph-format.txt')
0 files changed, 0 insertions, 0 deletions