Sha256: ad68ebccf613acaf15edb336cf17168fd645d55409c43ae7579beb343ca7cb62
Contents?: true
Size: 417 Bytes
Versions: 9
Compression:
Stored size: 417 Bytes
Contents
#!/usr/bin/env ruby lib = File.expand_path('../lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'git/branch/stray' %w[TERM INT].each do |signal| Signal.trap(signal) do exit(0) end end if git('rev-parse --show-toplevel').first Git.delete_stray_branches exit(0) else puts "Please run #{File.basename(__FILE__)} from inside a git repo!" exit(-1) end # That's all Folks!
Version data entries
9 entries across 9 versions & 1 rubygems