Class: Avm::Git::AutoCommit::Rules::Unique::WithFile

Inherits:
Base::WithFile show all
Defined in:
lib/avm/git/auto_commit/rules/unique.rb

Instance Method Summary collapse

Methods inherited from Base::WithFile

#new_commit_info

Instance Method Details

#commit_infoObject



11
12
13
14
15
# File 'lib/avm/git/auto_commit/rules/unique.rb', line 11

def commit_info
  return nil unless file.commits.count == 1

  new_commit_info.fixup(file.commits.first)
end