diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-05-01 12:47:09 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-22 12:36:34 +0900 |
commit | 3258c66332abaf6e3e8fd81cab07ae804760cd08 (patch) | |
tree | 73f4ac39d73c78c0d517136f13dba4a83e987591 /diffcore-rename.c | |
parent | commit: add generation number to struct commit (diff) | |
download | tgif-3258c66332abaf6e3e8fd81cab07ae804760cd08.tar.xz |
commit-graph: compute generation numbers
While preparing commits to be written into a commit-graph file, compute
the generation numbers using a depth-first strategy.
The only commits that are walked in this depth-first search are those
without a precomputed generation number. Thus, computation time will be
relative to the number of new commits to the commit-graph file.
If a computed generation number would exceed GENERATION_NUMBER_MAX, then
use GENERATION_NUMBER_MAX instead.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-rename.c')
0 files changed, 0 insertions, 0 deletions