module BranchFactory
Public Instance Methods
find(name)
click to toggle source
ブランチ名をもとに、通常/detachedブランチどちらかを判断し、返す
# File lib/git/stash/sclib/branch.rb, line 11 def find(name) if Cmd::branchExist? name Branch.new name elsif Cmd::branchRefExist? name DetachBranch.new name else nil end end