Merge branch 'ds/ahead-behind'
commit7727da99dfab82148c5b77eaf334b305fb835956
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Apr 2023 20:38:21 +0000 (6 13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Apr 2023 20:38:21 +0000 (6 13:38 -0700)
tree99ea4038ce40c89d09592a94a715b642160216a8
parentae73b2c8f1da39c39335ee76a0f95857712c22a7
parentcbfe360b140fe92d9c4a763bf630c3b8ba431522
Merge branch 'ds/ahead-behind'

"git for-each-ref" learns '%(ahead-behind:<base>)' that computes the
distances from a single reference point in the history with bunch
of commits in bulk.

* ds/ahead-behind:
  commit-reach: add tips_reachable_from_bases()
  for-each-ref: add ahead-behind format atom
  commit-reach: implement ahead_behind() logic
  commit-graph: introduce `ensure_generations_valid()`
  commit-graph: return generation from memory
  commit-graph: simplify compute_generation_numbers()
  commit-graph: refactor compute_topological_levels()
  for-each-ref: explicitly test no matches
  for-each-ref: add --stdin option
builtin/tag.c
commit-graph.c
commit-graph.h
commit-reach.c
ref-filter.c
ref-filter.h