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