Class: TestDiff::VersionControl::Git

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/test_diff/version_control/git.rb

Overview

class to find changed files for git

Instance Method Summary collapse

Methods included from Logging

log_debug, log_info

Constructor Details

#initialize(wd, last_tracked, current = 'HEAD', git_lib = ::GIT) ⇒ Git

Returns a new instance of Git.



10
11
12
13
14
# File 'lib/test_diff/version_control/git.rb', line 10

def initialize(wd, last_tracked, current = 'HEAD', git_lib = ::GIT)
  @git = git_lib.open(wd)
  @last_tracked = last_tracked
  @current = current
end

Instance Method Details

#changed_filesObject



16
17
18
# File 'lib/test_diff/version_control/git.rb', line 16

def changed_files
  diff_changed_files
end