This series introduces `git refs optimize` as a modern replacement for `git pack-refs`, continuing the effort to consolidate commands under the `git refs` namespace. Meet Soni (5): builtin/pack-refs: factor out core logic into a helper doc: factor out common option builtin/refs: add optimize subcommand t0601: refactor tests to be shareable t: add test for git refs optimize subcommand Documentation/git-pack-refs.adoc | 54 +--- Documentation/git-refs.adoc | 10 + Documentation/pack-refs-options.adoc | 52 ++++ builtin/pack-refs.c | 31 +- builtin/refs.c | 16 + pack-refs.h | 22 ++ t/meson.build | 3 +- t/pack-refs-tests.sh | 431 +++++++++++++++++++++++++++ t/t0601-reffiles-pack-refs.sh | 430 +------------------------- t/t1463-refs-optimize.sh | 17 ++ 10 files changed, 572 insertions(+), 494 deletions(-) create mode 100644 Documentation/pack-refs-options.adoc create mode 100644 pack-refs.h create mode 100644 t/pack-refs-tests.sh create mode 100755 t/t1463-refs-optimize.sh base-commit: 1fa68948c3d76328236cac73d2adf33c905bd8e3 -- 2.34.1