Sha256: ea5696b4dc717be0f0a85e3f778e27ef9699ca6a80bc26b8752257f0f46424f1

Contents?: true

Size: 337 Bytes

Versions: 46

Compression:

Stored size: 337 Bytes

Contents

require 'thor'
require 'gitx'
require 'gitx/cli/base_command'

module Gitx
  module Cli
    class TrackCommand < BaseCommand
      desc 'track', 'set the current branch to track the remote branch with the same name'
      def track
        run_cmd "git branch --set-upstream-to origin/#{current_branch.name}"
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gitx-2.13.5 lib/gitx/cli/track_command.rb
gitx-2.13.4.ci.39.1 lib/gitx/cli/track_command.rb
gitx-2.13.4 lib/gitx/cli/track_command.rb
gitx-2.13.3 lib/gitx/cli/track_command.rb
gitx-2.13.2 lib/gitx/cli/track_command.rb
gitx-2.13.1 lib/gitx/cli/track_command.rb