diff options
author | Derrick Stolee <stolee@gmail.com> | 2025-05-16 18:12:03 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-05-16 12:15:41 -0700 |
commit | c178b02e29f7e3d4033893af9fad8477c9b99be9 (patch) | |
tree | 244eac42a2046aa19e329b9614f797a5e8dc3610 /builtin/commit-graph.c | |
parent | 4705889c3dfbb38f14c3569b489b4b2a00b4186a (diff) |
pack-objects: allow --shallow and --path-walk
There does not appear to be anything particularly incompatible about the
--shallow and --path-walk options of 'git pack-objects'. If shallow
commits are to be handled differently, then it is by the revision walk
that defines the commit set and which are interesting or uninteresting.
However, before the previous change, a trivial removal of the warning
would cause a failure in t5500-fetch-pack.sh when
GIT_TEST_PACK_PATH_WALK is enabled. The shallow fetch would provide more
objects than we desired, due to some incorrect behavior of the path-walk
API, especially around walking uninteresting objects.
The recently-added tests in t5538-push-shallow.sh help to confirm this
behavior is working with the --path-walk option if
GIT_TEST_PACK_PATH_WALK is enabled. These tests passed previously due to
the --path-walk feature being disabled in the presence of a shallow
clone.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions