Sha256: 153e4010ec716d1eee397861c39303eb0db9019691bdd8398bee6eee0899d37c
Contents?: true
Size: 493 Bytes
Versions: 4
Compression:
Stored size: 493 Bytes
Contents
require 'git-utils/command' class SyncFork < Command def parser OptionParser.new do |opts| opts.banner = "Usage: git sync-fork [default]" 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 #{default_branch}"] c << "git fetch upstream" c << "git merge upstream/#{default_branch}" c.join("\n") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
git-utils-2.4.0 | lib/git-utils/sync_fork.rb |
git-utils-2.3.0 | lib/git-utils/sync_fork.rb |
git-utils-2.2.1 | lib/git-utils/sync_fork.rb |
git-utils-2.2.0 | lib/git-utils/sync_fork.rb |