Sha256: 212ddad6d5fa06a6cf635d1420269707cc4b487a99c5cb0b745e95e3f4ba2e9a
Contents?: true
Size: 331 Bytes
Versions: 1
Compression:
Stored size: 331 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 else puts 'Invalid command' exit 3 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lgit-0.1.0 | exe/lgit |