Method: YMDP::GitHelper#get_current_branch

Defined in:
lib/ymdp/compiler/git_helper.rb

#get_current_branchObject



13
14
15
16
17
18
# File 'lib/ymdp/compiler/git_helper.rb', line 13

def get_current_branch
  result = F.execute("git status", :return => true)
  if result =~ /# On branch (.*)/
    return $1
  end
end