Sha256: ec20aa5f2175a5bf7d4df62be86af342c0d21c89ecefe940fe028831f51eec8f

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

# 
# ruby-git 库有一些错误,这是补丁
#


module Git
	class Lib
		def full_log_commits(opts = {})
			arr_opts = ['--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)
			# modify by weizhao. commit must be specify
			# putsrocess_commit_data(full_log)
			process_commit_data(full_log,"commit")
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-hack-0.0.2 lib/core_ext/git_patch.rb
git-hack-0.0.1 lib/core_ext/git_patch.rb