Sha256: addbfcbc79853f7ae3a5c3736263b8da3740122c722975ae1a4e7ec307d46e88
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
require 'date' require_relative './commit_reader' module PairingMatrix class LocalCommitReader < CommitReader def initialize(config) super(config) end protected def read(since) commits = [] @config.repositories.each do |repo| Dir.chdir repo do commits << read_commits(since) end end commits.flatten end private def read_commits(since) `git log --oneline --after=\"#{since}\"`.split("\n") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pairing_matrix-3.0.0 | lib/pairing_matrix/commit_readers/local_commit_reader.rb |