class GitRecent::LocalBranchReader

Public Class Methods

local_branches_excluding_current() click to toggle source
# File lib/git_recent/local_branch_reader.rb, line 4
def local_branches_excluding_current
  local_branches.reject { |b| b.current }.map(&:name).to_set
end

Private Class Methods

local_branches() click to toggle source
# File lib/git_recent/local_branch_reader.rb, line 10
def local_branches
  g = Git.open('.')
  g.branches.local
end