class PrChangelog::GitProxy

A boundary class between git and the rest of the gem

Constants

LOG_FORMAT

Public Instance Methods

commits_between(base_ref, current_ref) click to toggle source
# File lib/pr_changelog/git_proxy.rb, line 8
def commits_between(base_ref, current_ref)
  `git log #{base_ref}..#{current_ref} --format='#{LOG_FORMAT}'`
end
git_tags_list() click to toggle source
# File lib/pr_changelog/git_proxy.rb, line 16
def git_tags_list
  `git tag --list`.split("\n")
end
merge_commits_between(base_ref, current_ref) click to toggle source
# File lib/pr_changelog/git_proxy.rb, line 12
def merge_commits_between(base_ref, current_ref)
  `git log --merges #{base_ref}..#{current_ref} --format='#{LOG_FORMAT}'`
end