Method: Pkg::Util::Git.ref_type

Defined in:
lib/packaging/util/git.rb

.ref_typeObject

Return the ref type of HEAD on the current branch



91
92
93
94
95
96
# File 'lib/packaging/util/git.rb', line 91

def ref_type
  Pkg::Util.in_project_root do
    stdout, = Pkg::Util::Execution.capture3("#{Pkg::Util::Tool::GIT} cat-file -t #{describe('')}")
    stdout.strip
  end
end