Class: CommitFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/changelogger/commit_formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(commit) ⇒ Object



4
5
6
7
8
9
# File 'lib/changelogger/commit_formatter.rb', line 4

def format(commit)
  "  - " +
    commit.committed_date.strftime("%Y/%m/%d: ") +
    commit.message.split(/\n/).first +
    " (" + commit.author.name + ")"
end