Class: Git::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gitra/git_patches.rb

Instance Method Summary collapse

Instance Method Details

#log_ancestry(from, to) ⇒ Object



9
10
11
# File 'lib/gitra/git_patches.rb', line 9

def log_ancestry(from, to)
  self.lib.log_ancestry(from, to).map { |c| Git::Object::Commit.new(self, c['sha'], c) }
end

#merge_base(commit1, commit2) ⇒ Object



5
6
7
# File 'lib/gitra/git_patches.rb', line 5

def merge_base(commit1, commit2)
  self.lib.merge_base(commit1, commit2)
end