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

Version Path
git-branch--stray-2.0.0 exe/git-branch--delete--stray
git-branch--stray-1.8.0 exe/git-branch--delete--stray
git-branch--stray-1.7.0 exe/git-branch--delete--stray
git-branch--stray-1.6.0 exe/git-branch--delete--stray
git-branch--stray-1.5.0 exe/git-branch--delete--stray
git-branch--stray-1.4.0 exe/git-branch--delete--stray
git-branch--stray-1.3.0 exe/git-branch--delete--stray
git-branch--stray-1.2.0 exe/git-branch--delete--stray
git-branch--stray-1.1.0 exe/git-branch--delete--stray