Sha256: 6b2d0c581aba71ce12fa9cd0dd8b0a6053f7a851102e4d34cc17bbdecb5f9884

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

#!/usr/bin/env ruby

lib = File.expand_path('../../lib', __FILE__)
$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

1 entries across 1 versions & 1 rubygems

Version Path
git-branch--stray-1.0.0 exe/git-branch--delete--stray