Method: Priha::GitCommand.call_git_name_rev_name_only_head
- Defined in:
- lib/priha/git_command.rb
.call_git_name_rev_name_only_head ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/priha/git_command.rb', line 3 def call_git_name_rev_name_only_head result = `git name-rev --name-only HEAD` return $?.exitstatus, result rescue => e # catch exception intead of status (a workaround for Windows) STDERR.puts e return 127, '' end |