Class: Git::Commands::Merge::Abort Private

Inherits:
Base
  • Object
show all
Defined in:
lib/git/commands/merge/abort.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Note:

arguments block audited against https://git-scm.com/docs/git-merge/2.53.0

Implements git merge --abort to abort an in-progress merge

Aborts the current merge and reconstructs the pre-merge state. If an autostash entry is present, applies it to the worktree.

Examples:

Abort a merge

abort_cmd = Git::Commands::Merge::Abort.new(execution_context)
abort_cmd.call

See Also:

Instance Method Summary collapse

Methods inherited from Base

allow_exit_status, arguments, #initialize, requires_git_version, skip_version_validation

Constructor Details

This class inherits a constructor from Git::Commands::Base

Instance Method Details

#callGit::CommandLineResult

Abort the current merge and reconstruct the pre-merge state

Returns:

Raises:



# File 'lib/git/commands/merge/abort.rb', line 31