class Git::Commands::CheckoutIndex

Implements the ‘git checkout-index` command

This command copies all files listed in the index to the working directory (not overwriting existing files). It is typically used to populate a new working directory from the current index, optionally scoped to a specific path or prefix.

@example Typical usage

checkout_index = Git::Commands::CheckoutIndex.new(execution_context)
checkout_index.call(all: true)
checkout_index.call(all: true, force: true)
checkout_index.call('path/to/file.txt')
checkout_index.call(all: true, prefix: 'output/')

@note ‘arguments` block audited against git-scm.com/docs/git-checkout-index/2.53.0

@see git-scm.com/docs/git-checkout-index git-checkout-index

@see Git::Commands

@api private