class Git::Commands::Gc

Implements the ‘git gc` command

Runs a number of housekeeping tasks within the current repository, such as compressing file revisions (to reduce disk space and increase performance), removing unreachable objects, packing refs, pruning reflog, rerere metadata or stale working trees.

@example Typical usage

gc = Git::Commands::Gc.new(execution_context)
gc.call
gc.call(auto: true)
gc.call(aggressive: true, prune: 'now')

@note ‘arguments` block audited against

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

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

@see Git::Commands

@api private