class Git::Remote
Attributes
Public Class Methods
Source
# File lib/git/remote.rb, line 8 def initialize(base, name) @base = base config = @base.lib.config_remote(name) @name = name @url = config['url'] @fetch_opts = config['fetch'] end
Public Instance Methods
Source
# File lib/git/remote.rb, line 26 def branch(branch = @base.current_branch) remote_tracking_branch = "#{@name}/#{branch}" Git::Branch.new(@base, remote_tracking_branch) end
Source
# File lib/git/remote.rb, line 16 def fetch(opts={}) @base.fetch(@name, opts) end
Source
# File lib/git/remote.rb, line 21 def merge(branch = @base.current_branch) remote_tracking_branch = "#{@name}/#{branch}" @base.merge(remote_tracking_branch) end
merge this remote locally