Class: Git::Lib

Inherits:
Object
  • Object
show all
Defined in:
lib/ptlog/change_log.rb

Instance Method Summary collapse

Instance Method Details

#first_commitObject



9
10
11
# File 'lib/ptlog/change_log.rb', line 9

def first_commit
  command("rev-list --max-parents=0 HEAD")
end

#ordered_tagsObject



6
7
8
# File 'lib/ptlog/change_log.rb', line 6

def ordered_tags
  command_lines("for-each-ref --sort='*authordate' --format='%(tag)' refs/tags")
end