Method: Gitgo::Git#stats
- Defined in:
- lib/gitgo/git.rb
#stats ⇒ Object
Returns a hash of repo statistics parsed from ‘git count-objects –verbose’.
862 863 864 865 866 867 868 869 870 871 872 873 |
# File 'lib/gitgo/git.rb', line 862 def stats sandbox do |git, work_tree, index_file| stdout, stderr = git.sh("#{Grit::Git.git_binary} count-objects --verbose") stats = YAML.load(stdout) unless stats.kind_of?(Hash) raise stderr end stats end end |