class GitLog::Log
Public Class Methods
generate_log(specific_date = nil, log_style = nil, author = nil, current_branch_only = false)
click to toggle source
# File lib/gitlog/log.rb, line 213 def self.generate_log(specific_date = nil, log_style = nil, author = nil, current_branch_only = false) if specific_date.nil? specific_date = "#{DateTime.now.strftime("%Y-%m-%d")}" end if log_style.nil? log_style = :type_wise end if author.nil? author = author() end # print_log("log_style", log_style) git_logs = git_log_on_date(specific_date, author, current_branch_only) logs = git_formatted_log(git_logs,log_style) puts logs end
log_between_commits(from, to, log_style = nil, author = nil)
click to toggle source
# File lib/gitlog/log.rb, line 229 def self.log_between_commits(from, to, log_style = nil, author = nil) if log_style.nil? log_style = :type_wise end if author.nil? author = author() end git_logs = git_log_between_commits(from, to, author) logs = git_formatted_log(git_logs,log_style) puts logs end