Sha256: 89838e0a3bd3c8d9762fe64a892a1114eda36974492ad79a0fb524caae4b7b35
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
require "lgit/version" module Lgit class Git def refresh_master `git checkout master` `git pull` end def get_branch `git name-rev --name-only HEAD`.strip end def create_branch(name) if name refresh_master `git checkout -b #{name}` end end def rebase refresh_master `git checkout - ` `git rebase master` end def delete_branches # TODO end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lgit-0.1.0 | lib/lgit.rb |