8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/core_ext/git_patch.rb', line 8
def full_log_commits(opts = {})
arr_opts = ['--no-color --pretty=raw']
arr_opts << "-#{opts[:count]}" if opts[:count]
arr_opts << "--skip=#{opts[:skip]}" if opts[:skip]
arr_opts << "--since=#{opts[:since]}" if opts[:since].is_a? String
arr_opts << "--until=#{opts[:until]}" if opts[:until].is_a? String
arr_opts << "--grep=#{opts[:grep]}" if opts[:grep].is_a? String
arr_opts << "--author=#{opts[:author]}" if opts[:author].is_a? String
arr_opts << "#{opts[:between][0].to_s}..#{opts[:between][1].to_s}" if (opts[:between] && opts[:between].size == 2)
arr_opts << opts[:object] if opts[:object].is_a? String
arr_opts << '--' << opts[:path_limiter] if opts[:path_limiter].is_a? String
puts arr_opts.to_s_s
full_log = command_lines('log', arr_opts, true)
process_commit_data(full_log,"commit")
end
|