Method: GitChain::Runner#add

Defined in:
lib/git_chain/runner.rb

#add(parent:, old_base: nil) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/git_chain/runner.rb', line 37

def add(parent:, old_base: nil)
  chain.mark_branch_as_dependent(
    child: git.current_branch,
    parent: parent,
    old_base: old_base
  )
end