Class: Avm::Git::AutoCommit::CommitInfo
- Defined in:
- lib/avm/git/auto_commit/commit_info.rb
Instance Method Summary collapse
Instance Method Details
#git_commit_args ⇒ Object
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 += .if_present([]) { |v| ['--message', v] } return r if r.any? raise 'Argument list is empty' end |