module Jekyll::Changelog
Constants
- VERSION
Public Class Methods
get_commit(path, date)
click to toggle source
# File lib/jekyll-changelog.rb, line 5 def self.get_commit(path, date) `git log -1 --before=@{#{date}T00:00:00} --format=%H -- #{path}`.strip end
get_content(path, commit)
click to toggle source
# File lib/jekyll-changelog.rb, line 9 def self.get_content(path, commit) `git show "#{commit}:#{path}"` end