Sha256: 274cadb405b1a8c4c9bfd01bba8bbe3449ed7cae7fecff5c75d9d32a72e9bacd
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
require 'git-utils/command' class SyncFork < Command def parser OptionParser.new do |opts| opts.banner = "Usage: git sync-fork" opts.on_tail("-h", "--help", "this usage guide") do puts opts.to_s; exit 0 end end end # Returns a command appropriate for executing at the command line. def cmd c = ["git checkout master"] c << "git fetch upstream" c << "git merge upstream/master" c.join("\n") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git-utils-2.1.0 | lib/git-utils/sync_fork.rb |