class Retest::VersionControl::Git
Public Class Methods
diff_files(branch)
click to toggle source
# File lib/retest/version_control/git.rb, line 7 def self.diff_files(branch) new.diff_files(branch) end
installed?()
click to toggle source
# File lib/retest/version_control/git.rb, line 3 def self.installed? system "git -C . rev-parse 2>/dev/null" end
Public Instance Methods
diff_files(branch)
click to toggle source
# File lib/retest/version_control/git.rb, line 19 def diff_files(branch) `git diff #{branch} --name-only --diff-filter=ACMRT -z`.split("\x0") end
files()
click to toggle source
# File lib/retest/version_control/git.rb, line 15 def files (untracked_files + tracked_files).sort end
name()
click to toggle source
# File lib/retest/version_control/git.rb, line 11 def name 'git' end
Private Instance Methods
tracked_files()
click to toggle source
# File lib/retest/version_control/git.rb, line 29 def tracked_files `git ls-files -z`.split("\x0") end
untracked_files()
click to toggle source
# File lib/retest/version_control/git.rb, line 25 def untracked_files `git ls-files --other --exclude-standard -z`.split("\x0") end