class Suspect::FileTree::Git::Client
Public Instance Methods
branch()
click to toggle source
# File lib/suspect/file_tree/git/client.rb, line 5 def branch `git rev-parse --abbrev-ref HEAD` end
commit_hash()
click to toggle source
# File lib/suspect/file_tree/git/client.rb, line 17 def commit_hash `git log -1 --format="%H"` end
diff()
click to toggle source
# File lib/suspect/file_tree/git/client.rb, line 21 def diff `git diff` end
files()
click to toggle source
# File lib/suspect/file_tree/git/client.rb, line 9 def files `git ls-files --full-name` end
modified_files()
click to toggle source
# File lib/suspect/file_tree/git/client.rb, line 13 def modified_files `git ls-files --full-name --modified` end