Class: Git::Lib

Inherits:
Object
  • Object
show all
Defined in:
lib/danger/scm_source/git_repo.rb

Instance Method Summary collapse

Instance Method Details

#merge_base(commit1, commit2, *other_commits) ⇒ Object


46
47
48
49
50
51
52
# File 'lib/danger/scm_source/git_repo.rb', line 46

def merge_base(commit1, commit2, *other_commits)
  arr_opts = []
  arr_opts << commit1
  arr_opts << commit2
  arr_opts += other_commits
  command("merge-base", arr_opts)
end