Module: Jekyll::Changelog
- Defined in:
- lib/version.rb,
lib/jekyll-changelog.rb
Defined Under Namespace
Modules: Filter
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
Class Method Details
.get_commit(path, date) ⇒ Object
5 6 7 |
# File 'lib/jekyll-changelog.rb', line 5 def self.get_commit(path, date) `git log -1 --before=@{#{date}} --format=%H -- #{path}`.strip end |
.get_content(path, commit) ⇒ Object
9 10 11 |
# File 'lib/jekyll-changelog.rb', line 9 def self.get_content(path, commit) content = `git show "#{commit}:#{path}"` end |