# File lib/grit/ref.rb, line 63 def self.current(repo, options = {}) head = repo.git.fs_read('HEAD').chomp if /ref: refs\/heads\/(.*)/.match(head) self.new($1, repo.git.rev_parse(options, 'HEAD')) end end