Class: Avm::Git::FileAutoFixup

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/git/file_auto_fixup.rb

Defined Under Namespace

Classes: CommitDelegator

Constant Summary collapse

COMMIT_FORMAT =
'%h - %s (%cr)'
COMMITS_SEARCH_INTERVAL =
'origin/master..HEAD'
SKIP_OPTION =
's'

Instance Method Summary collapse

Instance Method Details

#runObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/avm/git/file_auto_fixup.rb', line 21

def run
  start_banner
  if commits.count.zero?
    run_no_commits_found
  elsif auto_selected_commit.present?
    fixup_commit(auto_selected_commit)
  else
    run_commits_selection
  end
end