module Covet::LineChangesVCS

Gets file and line numbers that have changed since an arbitrary point in the VCS's (Version Control System's) history.

Public Class Methods

changes_since(since = :last_commit) click to toggle source

@return Set<Array>

# File lib/covet/line_changes_vcs.rb, line 6
def self.changes_since(since = :last_commit)
  require_relative "vcs/#{Covet.vcs}"
  Covet::VCS.const_get(Covet.vcs.capitalize).changes_since(since)
rescue LoadError
  raise NotImplementedError, "#{self.class} can't get line changes using VCS: #{Covet.vcs} (not implemented)"
end