Sha256: 710232b5cab9c51290dd9bdfcf94032146aa61046a800b64567c87958b9a5e19
Contents?: true
Size: 425 Bytes
Versions: 5
Compression:
Stored size: 425 Bytes
Contents
require 'grit' include Grit class GitHelper def get_hash(branch) branch = get_current_branch || "master" repo = Repo.new("#{BASE_PATH}/.") repo.commits(branch).first.id end def get_current_branch result = `git status` if result =~ /# On branch (.*)/ return $1 end end def do_commit(message) repo = Repo.new(".") repo.add(".") puts `git commit -am "#{message}"` end end
Version data entries
5 entries across 5 versions & 1 rubygems