Class: Churn::GitAnalyzer
- Inherits:
-
SourceControl
- Object
- SourceControl
- Churn::GitAnalyzer
- Defined in:
- lib/churn/git_analyzer.rb
Overview
analizes git SCM to find recently changed files, and what lines have been altered
Instance Method Summary collapse
Methods inherited from SourceControl
#get_updated_files_change_info, #get_updated_files_from_log, #initialize
Constructor Details
This class inherits a constructor from Churn::SourceControl
Instance Method Details
#get_logs ⇒ Object
5 6 7 |
# File 'lib/churn/git_analyzer.rb', line 5 def get_logs `git log #{date_range} --name-only --pretty=format:`.split(/\n/).reject{|line| line == ""} end |
#get_revisions ⇒ Object
9 10 11 |
# File 'lib/churn/git_analyzer.rb', line 9 def get_revisions `git log #{date_range} --pretty=format:"%H"`.split(/\n/).reject{|line| line == ""} end |