Class: RubyMaat::Parsers::GitParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- RubyMaat::Parsers::GitParser
- Defined in:
- lib/ruby_maat/parsers/git_parser.rb
Overview
Legacy Git parser for backward compatibility
Input: git log –pretty=format:‘ %aN %ad %s’ –date=short –numstat –after=YYYY-MM-DD
Sample format:
- 586b4eb
-
Adam Tornhill 2015-06-15 Add new feature
35 0 src/code_maat/mining/vcs.clj 2 1 test/file.rb
- abc123
-
Jane Doe 2015-06-16 Fix bug in parser
10 5 lib/example.rb
Constant Summary collapse
- COMMIT_PATTERN =
/^\[([a-f0-9]+)\] ([^0-9][^\t]*?) (\d{4}-\d{2}-\d{2}) ([^\r\n]*)$/- CHANGE_PATTERN =
/^(\d+|-)\t(\d+|-)\t([^\r\n]+)$/
Method Summary
Methods inherited from BaseParser
Constructor Details
This class inherits a constructor from RubyMaat::Parsers::BaseParser