class Git::Commands::Revert::Start
Implements ‘git revert` to create commits that undo prior changes
Given one or more existing commits, reverts the changes introduced by those commits and records new commits that reverse them. This requires the working tree to be clean.
@example Revert the most recent commit
revert = Git::Commands::Revert::Start.new(execution_context) revert.call('HEAD')
@example Revert a specific commit without committing
revert.call('abc123', no_commit: true)
@example Revert a range of commits
revert.call('HEAD~3..HEAD~1')
@example Revert a merge commit specifying the mainline parent
revert.call('abc123', mainline: 1)
@note ‘arguments` block audited against git-scm.com/docs/git-revert/2.53.0
@see git-scm.com/docs/git-revert git-revert
@api private