Class: Avm::Scms::AutoCommit::Rules::Unique::WithFile

Inherits:
Base::WithFile
  • Object
show all
Defined in:
lib/avm/scms/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/scms/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