Sha256: 18a6232d827a5675e508ce84ba6c8322de5377a94f21e30e9eed87e5580d330d

Contents?: true

Size: 845 Bytes

Versions: 4

Compression:

Stored size: 845 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|

    GitReflow.refresh base: options[:base], remote: options[:remote]

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git_reflow-0.8.10 lib/git_reflow/commands/refresh.rb
git_reflow-0.8.9 lib/git_reflow/commands/refresh.rb
git_reflow-0.8.8 lib/git_reflow/commands/refresh.rb
git_reflow-0.8.7 lib/git_reflow/commands/refresh.rb