Sha256: 38a91e95ae007c8623b8f655f51a9ff6a2ed85cfd6fb956321044c0f88278f43

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

#!/usr/bin/env ruby

require "lgit"

if ARGV.size.zero?
  puts 'Specify command'
  exit 1
end

git = Lgit::Git.new

case ARGV[0]
when 'branch'
  git.create_branch ARGV[1]
when 'rebase'
  if git.get_branch == 'master'
    puts "Error: Cannot rebase master!"
    exit 2
  end
  git.rebase
when 'delete-branches'
  git.delete_branches
else
  puts 'Invalid command'
  exit 3
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lgit-0.2.1 exe/lgit
lgit-0.2.0 exe/lgit