class Git::Lib
Public Instance Methods
log_ancestry(from, to)
click to toggle source
# File lib/gitra/git_patches.rb, line 19 def log_ancestry(from, to) arr_opts = ['--pretty=raw'] arr_opts << "#{from.to_s}..#{to.to_s}" arr_opts << '--ancestry-path' full_log = command_lines('log', arr_opts, true) process_commit_log_data(full_log) end
merge_base(commit1, commit2)
click to toggle source
# File lib/gitra/git_patches.rb, line 15 def merge_base(commit1, commit2) command('merge-base', [commit1, commit2]) end