module Gkv::GitFunctions

Public Instance Methods

cat_file(hash) click to toggle source
# File lib/gkv/git.rb, line 9
def cat_file(hash)
  `git cat-file -p #{hash}`
end
hash_object(data) click to toggle source
# File lib/gkv/git.rb, line 5
def hash_object(data)
  `echo "#{data}" | git hash-object -w --stdin`.strip!
end