Sha256: 2ac2b8e933da529e558fffd835e7611614fd74ead6f8ca8024c2dafe859127af

Contents?: true

Size: 329 Bytes

Versions: 17

Compression:

Stored size: 329 Bytes

Contents

#!/usr/bin/env ruby

tag = ARGV[0]

if tag
  timestamp = `date -u +'%Y%m%d%H%M%S'`
  full_tag = "#{tag}/#{timestamp}"
  tag_exists = `git log HEAD --no-walk -1 --pretty='%h%d'`.include? "tag: #{tag}"

  if tag_exists
    puts "Already tagged #{tag}!"
    exit 0
  end

  `git tag #{full_tag}`
  `git push origin #{full_tag}`
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pivotoolz-2.4.2 exe/tag-it
pivotoolz-2.4.1 exe/tag-it
pivotoolz-2.4.0 exe/tag-it
pivotoolz-2.3.0 exe/tag-it
pivotoolz-2.2.0 exe/tag-it
pivotoolz-2.1.0 exe/tag-it
pivotoolz-2.0.0 exe/tag-it
pivotoolz-1.3.0 exe/tag-it
pivotoolz-1.2.2 exe/tag-it
pivotoolz-1.2.0 exe/tag-it
pivotoolz-1.1.1 exe/tag-it
pivotoolz-1.1.0 exe/tag-it
pivotoolz-1.0.0 exe/tag-it
pivotoolz-0.2.0 exe/tag-it
pivotoolz-0.1.3 exe/tag-it
pivotoolz-0.1.2 exe/tag-it
pivotoolz-0.1.1 exe/tag-it