Class: Git::Commands::Am::Quit Private

Inherits:
Base
  • Object
show all
Defined in:
lib/git/commands/am/quit.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-am/2.53.0

Implements git am --quit to abort the in-progress am session

Aborts the in-progress patch application but keeps the current HEAD position (does not restore the branch to its pre-am state).

Examples:

Quit an am session without restoring HEAD

quit_cmd = Git::Commands::Am::Quit.new(execution_context)
quit_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 am session but keep the current HEAD position

Returns:

Raises:



# File 'lib/git/commands/am/quit.rb', line 31