Sha256: 0d16e434db85e6d1791aff77da2aa98e6cf5502d1eb21dbe13b0f4711b9eb10e
Contents?: true
Size: 903 Bytes
Versions: 4
Compression:
Stored size: 903 Bytes
Contents
desc 'Updates and synchronizes your base branch and feature branch.' long_desc <<LONGTIME Performs the following:\n \t$ git checkout <base_branch>\n \t$ git pull <remote_location> <base_branch>\n \t$ git checkout <current_branch>\n \t$ git pull origin <current_branch>\n \t$ git merge <base_branch>\n LONGTIME arg_name '[remote_location] - remote repository name to fetch updates from (origin by default), [base_branch] - branch that you want to merge with (master by default)' command :refresh do |c| c.desc 'updates base_branch based on remote and merges the base with your feature_branch' c.flag [:r,:remote], default_value: 'origin' c.flag [:b,:base], default_value: 'master' c.action do |global_options, options, args| refresh_options = { :remote => options[:remote], :base => options[:base] } GitReflow.update_feature_branch(refresh_options) end end
Version data entries
4 entries across 4 versions & 1 rubygems