From: Derrick Stolee Date: Tue, 18 Jun 2019 18:14:25 +0000 (-0700) Subject: commit-graph: load commit-graph chains X-Git-Tag: v2.23.0-rc0~38^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5c84b3396c73382eb49285b4e4bbb1bf82be3a9c?hp=5c84b3396c73382eb49285b4e4bbb1bf82be3a9c 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 Signed-off-by: Junio C Hamano ---