Module: GitHandsome
- Defined in:
- lib/git_handsome.rb,
lib/git_handsome/version.rb
Constant Summary collapse
- VERSION =
"0.0.3"
Class Method Summary collapse
Class Method Details
.log ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/git_handsome.rb', line 6 def self.log json_string = '[' + `git log --format=format:'{!!00!!commit!!00!!:!!00!!%H!!00!!,!!00!!author!!00!!:!!00!!%an!!00!!,!!00!!email!!00!!:!!00!!%ae!!00!!,!!00!!date!!00!!:!!00!!%ai!!00!!,!!00!!subject!!00!!:!!00!!%s!!00!!},'`.chop + ']' json_string.gsub! '"', '\\"' json_string.gsub! '!!00!!', '"' JSON.parse json_string end |