summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2023-08-21 17:34:42 -0400
committerJunio C Hamano <gitster@pobox.com>2023-08-21 16:16:23 -0700
commitdb6044d76261a996c03ce8f1e08240f326a42e15 (patch)
treef1856b8ba2fb03970529f8defd4762d87646541f /diff.c
parentce7629a315459c12451ee9071db22f8b0e26a4eb (diff)
commit-graph: avoid repeated mixed generation number warnings
When validating that a commit-graph has either all zero, or all non-zero generation numbers, we emit a warning on both the rising and falling edge of transitioning between the two. So if we are unfortunate enough to see a commit-graph which has a repeating sequence of zero, then non-zero generation numbers, we'll generate many warnings that contain more or less the same information. Avoid this by keeping track of a single example for a commit with zero- and non-zero generation, and emit a single warning at the end of verification if both are non-NULL. Co-authored-by: Jeff King <peff@peff.net> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions