Instead of showing the authors and signers, show the commits themselves. Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx> --- contrib/cc-cmd/git-cc-cmd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/contrib/cc-cmd/git-cc-cmd b/contrib/cc-cmd/git-cc-cmd index 3a9c70e..c49225f 100755 --- a/contrib/cc-cmd/git-cc-cmd +++ b/contrib/cc-cmd/git-cc-cmd @@ -4,6 +4,7 @@ require 'optparse' $since = '3-years-ago' $min_percent = 5 +$show_commits = false begin OptionParser.new do |opts| @@ -16,6 +17,9 @@ begin opts.on('-d', '--since DATE', 'How far back to search for relevant commits') do |v| $since = v end + opts.on('-c', '--commits[=FORMAT]', [:raw, :full], 'List commits instead of persons') do |v| + $show_commits = v || true + end end.parse! rescue OptionParser::InvalidOption end @@ -124,6 +128,20 @@ commits = Commits.new commits.from_patches(ARGV) commits.import +if $show_commits + cmd = nil + case $show_commits + when :raw + puts commits.items.keys + when :full + cmd = %w[git log --patch --no-walk] + else + cmd = %w[git log --oneline --no-walk] + end + system(*cmd + commits.items.keys) if cmd + exit 0 +end + # hash of hashes persons = Hash.new { |hash, key| hash[key] = {} } -- 1.8.2.1.790.g4588561 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html