Method: YMDP::GitHelper#get_hash
- Defined in:
- lib/ymdp/compiler/git_helper.rb
#get_hash(branch) ⇒ Object
7 8 9 10 11 |
# File 'lib/ymdp/compiler/git_helper.rb', line 7 def get_hash(branch) branch = get_current_branch || "master" repo = Repo.new("#{BASE_PATH}/.") repo.commits(branch).first.id end |