Class: Hookers::Changelog::History
- Inherits:
-
Object
- Object
- Hookers::Changelog::History
- Defined in:
- lib/hookers/changelog/history.rb
Class Method Summary collapse
Class Method Details
.between(from, to) ⇒ Object
10 11 12 |
# File 'lib/hookers/changelog/history.rb', line 10 def self.between(from, to) lines = %x[git log --pretty=oneline #{from}..#{to}].split(/\n/) end |
.first ⇒ Object
6 7 8 |
# File 'lib/hookers/changelog/history.rb', line 6 def self.first %x[git rev-list --all --reverse | head -1].strip end |