class Git::Commands::Repack

Wrapper for the ‘git repack` command

Packs unpacked objects in a repository into pack files, and can reorganize existing packs into a single, more efficient pack. Running ‘git repack -a -d` is the most common usage: pack all objects and delete redundant packs.

@example Pack all objects and delete redundant packs

repack = Git::Commands::Repack.new(execution_context)
repack.call(a: true, d: true)

@example Pack all objects with bitmap index

repack = Git::Commands::Repack.new(execution_context)
repack.call(a: true, d: true, write_bitmap_index: true)

@example Control delta compression performance

repack = Git::Commands::Repack.new(execution_context)
repack.call(a: true, d: true, window: 250, depth: 50)

@note ‘arguments` block audited against

https://git-scm.com/docs/git-repack/2.53.0

@see git-scm.com/docs/git-repack git-repack

@see Git::Commands

@api private