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

Version Path
utils-0.21.2 bin/git-versions
utils-0.21.1 bin/git-versions
utils-0.21.0 bin/git-versions
utils-0.20.0 bin/git-versions
utils-0.19.0 bin/git-versions
utils-0.18.1 bin/git-versions
utils-0.18.0 bin/git-versions
utils-0.17.0 bin/git-versions
utils-0.16.0 bin/git-versions
utils-0.15.1 bin/git-versions
utils-0.15.0 bin/git-versions
utils-0.14.0 bin/git-versions
utils-0.13.0 bin/git-versions
utils-0.12.0 bin/git-versions
utils-0.11.0 bin/git-versions
utils-0.10.1 bin/git-versions
utils-0.10.0 bin/git-versions
utils-0.9.0 bin/git-versions