class Git::Commands::Worktree::Prune

Prunes stale worktree administrative files

@example Prune stale worktree info

Git::Commands::Worktree::Prune.new(execution_context).call

@example Dry-run to see what would be pruned

Git::Commands::Worktree::Prune.new(execution_context).call(dry_run: true)

@example Prune entries older than 2 weeks

Git::Commands::Worktree::Prune.new(execution_context).call(expire: '2.weeks.ago')

@note โ€˜arguments` block audited against

https://git-scm.com/docs/git-worktree/2.54.0

@see Git::Commands::Worktree Git::Commands::Worktree for the full sub-command list

@see git-scm.com/docs/git-worktree git-worktree documentation

@api private