From 9fcfe12ac4309da9546db5b557bd41a246eb89d8 Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Fri, 16 May 2025 18:11:53 +0000 Subject: pack-objects: update usage to match docs The t0450 test script verifies that builtin usage matches the synopsis in the documentation. Adjust the builtin to match and then remove 'git pack-objects' from the exception list. Signed-off-by: Derrick Stolee Signed-off-by: Junio C Hamano --- builtin/pack-objects.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'builtin/pack-objects.c') diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index bd08838903..59d640d9f2 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -187,8 +187,14 @@ static inline void oe_set_delta_size(struct packing_data *pack, #define SET_DELTA_SIBLING(obj, val) oe_set_delta_sibling(&to_pack, obj, val) static const char *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=