Sha256: 646eadaedcd8f2b5e09286e60dd9850bd29883b8fc3da10a0645bef764b72082
Contents?: true
Size: 514 Bytes
Versions: 78
Compression:
Stored size: 514 Bytes
Contents
#!/usr/bin/env ruby require 'tins/xt' require 'term/ansicolor' include Tins::GO $opts = go 'r:v' class String include Term::ANSIColor end regexp = $opts[?r] && Regexp.new($opts[?r]) || /^v((?:\d+\.)*\d+)/ versions = `git tag`.lines.map(&:chomp).grep(regexp).sort_by { |x| x[regexp, 1].version }.reverse versions.each_cons(2) do |new, old| puts "Version #{new}".red.bold if $opts[?v] puts `git log --color --stat -u #{old}..#{new}` else puts `git log --color --stat #{old}..#{new}` end end
Version data entries
78 entries across 78 versions & 1 rubygems