]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'td/ref-filter-memoize-contains'
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Jul 2026 16:08:59 +0000 (09:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jul 2026 16:08:59 +0000 (09:08 -0700)
'git branch --contains' and 'git for-each-ref --contains' have been
optimized to use the memoized commit traversal previously used only by
'git tag --contains', significantly speeding up connectivity checks
across many candidate refs with shared history.

* td/ref-filter-memoize-contains:
  commit-reach: die on contains walk errors
  ref-filter: memoize --contains with generations
  commit-reach: reject cycles in contains walk

1  2 
commit-reach.c
t/t7004-tag.sh

diff --cc commit-reach.c
Simple merge
diff --cc t/t7004-tag.sh
Simple merge