Class: GitLog::Log
- Inherits:
-
Object
- Object
- GitLog::Log
- Defined in:
- lib/gitlog/log.rb
Class Method Summary collapse
- .generate_log(specific_date = nil, log_style = nil, author = nil, current_branch_only = false) ⇒ Object
- .log_between_commits(from, to, log_style = nil, author = nil) ⇒ Object
Class Method Details
.generate_log(specific_date = nil, log_style = nil, author = nil, current_branch_only = false) ⇒ Object
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/gitlog/log.rb', line 213 def self.generate_log(specific_date = nil, log_style = nil, = 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 .nil? = () end # print_log("log_style", log_style) git_logs = git_log_on_date(specific_date, , current_branch_only) logs = git_formatted_log(git_logs,log_style) puts logs end |
.log_between_commits(from, to, log_style = nil, author = nil) ⇒ Object
229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/gitlog/log.rb', line 229 def self.log_between_commits(from, to, log_style = nil, = nil) if log_style.nil? log_style = :type_wise end if .nil? = () end git_logs = git_log_between_commits(from, to, ) logs = git_formatted_log(git_logs,log_style) puts logs end |