Class: RubyMaat::Parsers::Git2Parser
- Inherits:
-
BaseParser
- Object
- BaseParser
- RubyMaat::Parsers::Git2Parser
- Defined in:
- lib/ruby_maat/parsers/git2_parser.rb
Overview
Git2 parser - preferred Git parser (more tolerant and faster)
Input: git log --all --numstat --date=short --pretty=format:'--%h--%ad--%aN' --no-renames --after=YYYY-MM-DD
Sample format: --586b4eb--2015-06-15--Adam Tornhill 35 0 src/code_maat/mining/vcs.clj 2 1 test/file.rb
--abc123--2015-06-16--Jane Doe 10 5 lib/example.rb
Constant Summary collapse
- COMMIT_SEPARATOR =
/^--([a-z0-9]+)--(\d{4}-\d{2}-\d{2})--([^\r\n]+)$/- CHANGE_PATTERN =
/^(-|\d+)[\t ]{1,10}(-|\d+)[\t ]{1,10}([^\r\n]*)$/
Method Summary
Methods inherited from BaseParser
Constructor Details
This class inherits a constructor from RubyMaat::Parsers::BaseParser