diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-06-27 09:24:39 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-27 10:29:10 -0700 |
commit | 1373e547f7d38b9444fcaae16c1de698b719aa15 (patch) | |
tree | 9a2737fc57a96ab50ed299018a49bee4ebbf1832 /git-gui/lib/transport.tcl | |
parent | commit-graph: verify parent list (diff) | |
download | tgif-1373e547f7d38b9444fcaae16c1de698b719aa15.tar.xz |
commit-graph: verify generation number
While iterating through the commit parents, perform the generation
number calculation and compare against the value stored in the
commit-graph.
The tests demonstrate that having a different set of parents affects
the generation number calculation, and this value propagates to
descendants. Hence, we drop the single-line condition on the output.
Since Git will ship with the commit-graph feature without generation
numbers, we need to accept commit-graphs with all generation numbers
equal to zero. In this case, ignore the generation number calculation.
However, verify that we should never have a mix of zero and non-zero
generation numbers. Create a test that sets one commit to generation
zero and all following commits report a failure as they have non-zero
generation in a file that contains generation number zero.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/transport.tcl')
0 files changed, 0 insertions, 0 deletions