Method: Git::Lib#branch_current
- Defined in:
- lib/git/lib.rb
#branch_current
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
794 795 796 797 |
# File 'lib/git/lib.rb', line 794 def branch_current branch_name = command('branch', '--show-current') branch_name.empty? ? 'HEAD' : branch_name end |