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.60.1 bin/git-versions
utils-0.60.0 bin/git-versions
utils-0.59.2 bin/git-versions
utils-0.59.1 bin/git-versions
utils-0.59.0 bin/git-versions
utils-0.58.0 bin/git-versions
utils-0.57.1 bin/git-versions
utils-0.57.0 bin/git-versions
utils-0.56.1 bin/git-versions
utils-0.56.0 bin/git-versions
utils-0.55.0 bin/git-versions
utils-0.54.1 bin/git-versions
utils-0.54.0 bin/git-versions
utils-0.53.1 bin/git-versions
utils-0.53.0 bin/git-versions
utils-0.52.1 bin/git-versions
utils-0.52.0 bin/git-versions
utils-0.51.1 bin/git-versions
utils-0.51.0 bin/git-versions
utils-0.50.0 bin/git-versions