class Git::Lib
Public Instance Methods
ls_tree(sha)
click to toggle source
# File lib/git-commits-analyzer/monkey-patch-git.rb, line 10 def ls_tree(sha) # Add 'commit' to the list of valid types. #data = {'blob' => {}, 'tree' => {}} data = {'blob' => {}, 'tree' => {}, 'commit' => {}} command_lines('ls-tree', sha).each do |line| (info, filenm) = line.split("\t") (mode, type, sha) = info.split data[type][filenm] = {:mode => mode, :sha => sha} end data end