Class: Git::Lib
- Inherits:
-
Object
- Object
- Git::Lib
- Defined in:
- lib/gitra/git_patches.rb
Instance Method Summary collapse
Instance Method Details
#log_ancestry(from, to) ⇒ Object
19 20 21 22 23 24 25 |
# 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_data(full_log) end |
#merge_base(commit1, commit2) ⇒ Object
15 16 17 |
# File 'lib/gitra/git_patches.rb', line 15 def merge_base(commit1, commit2) command('merge-base', [commit1, commit2]) end |