Class: Avm::Git::AutoCommit::CommitInfo

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

Instance Method Summary collapse

Instance Method Details

#git_commit_argsObject



13
14
15
16
17
18
19
# File 'lib/avm/git/auto_commit/commit_info.rb', line 13

def git_commit_args
  r = fixup.if_present([]) { |v| ['--fixup', v.sha1] }
  r += message.if_present([]) { |v| ['--message', v] }
  return r if r.any?

  raise 'Argument list is empty'
end