]> git.ipfire.org Git - thirdparty/git.git/commit
path-walk: add new 'edge_aggressive' option
authorDerrick Stolee <stolee@gmail.com>
Fri, 16 May 2025 18:12:02 +0000 (18:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 May 2025 19:15:40 +0000 (12:15 -0700)
commit4705889c3dfbb38f14c3569b489b4b2a00b4186a
tree469595e1218d3484611ab30c063819188c07d4d1
parente5394794a529beb0aee747f412c390a59949a03d
path-walk: add new 'edge_aggressive' option

In preparation for allowing both the --shallow and --path-walk options
in the 'git pack-objects' builtin, create a new 'edge_aggressive' option
in the path-walk API. This option will help walk the boundary more
thoroughly and help avoid sending extra objects during fetches and
pushes.

The only use of the 'edge_hint_aggressive' option in the revision API is
within mark_edges_uninteresting(), which is usually called before
between prepare_revision_walk() and before visiting commits with
get_revision(). In prepare_revision_walk(), the UNINTERESTING commits
are walked until a boundary is found.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-path-walk.adoc
path-walk.c
path-walk.h
t/helper/test-path-walk.c
t/t6601-path-walk.sh