From: Junio C Hamano Date: Tue, 17 Jun 2025 17:44:38 +0000 (-0700) Subject: Merge branch 'ds/path-walk-2' X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88134a8417b1deb6b236e660c6e0547355b180a3;p=thirdparty%2Fgit.git Merge branch 'ds/path-walk-2' "git pack-objects" learns to find delta bases from blobs at the same path, using the --path-walk API. * ds/path-walk-2: pack-objects: allow --shallow and --path-walk path-walk: add new 'edge_aggressive' option pack-objects: thread the path-based compression pack-objects: refactor path-walk delta phase scalar: enable path-walk during push via config pack-objects: enable --path-walk via config repack: add --path-walk option t5538: add tests to confirm deltas in shallow pushes pack-objects: introduce GIT_TEST_PACK_PATH_WALK p5313: add performance tests for --path-walk pack-objects: update usage to match docs pack-objects: add --path-walk option pack-objects: extract should_attempt_deltas() --- 88134a8417b1deb6b236e660c6e0547355b180a3 diff --cc builtin/pack-objects.c index 8b33edc2ff,a875465306..67941c8a60 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@@ -183,9 -187,15 +187,15 @@@ static inline void oe_set_delta_size(st #define SET_DELTA_CHILD(obj, val) oe_set_delta_child(&to_pack, obj, val) #define SET_DELTA_SIBLING(obj, val) oe_set_delta_sibling(&to_pack, obj, val) -static const char *pack_usage[] = { +static const char *const pack_usage[] = { - N_("git pack-objects --stdout [] [< | < ]"), - N_("git pack-objects [] [< | < ]"), + N_("git pack-objects [-q | --progress | --all-progress] [--all-progress-implied]\n" + " [--no-reuse-delta] [--delta-base-offset] [--non-empty]\n" + " [--local] [--incremental] [--window=] [--depth=]\n" + " [--revs [--unpacked | --all]] [--keep-pack=]\n" + " [--cruft] [--cruft-expiration=