Class Git::Remote
In: lib/git/remote.rb
Parent: Path

Methods

branch   fetch   merge   new   remove   remove   to_s  

Attributes

fetch_opts  [RW] 
name  [RW] 
url  [RW] 

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 29
    def branch(branch = 'master')
      Git::Branch.new(@base, "#{@name}/#{branch}")
    end

[Source]

# File lib/git/remote.rb, line 20
    def fetch
      @base.fetch(@name)
    end

merge this remote locally

[Source]

# File lib/git/remote.rb, line 25
    def merge(branch = 'master')
      @base.merge("#{@name}/#{branch}")
    end

[Source]

# File lib/git/remote.rb, line 16
    def remove
      @base.remote_remove(@name)
    end

[Source]

# File lib/git/remote.rb, line 33
    def remove
      @base.lib.remote_remove(@name)     
    end

[Source]

# File lib/git/remote.rb, line 37
    def to_s
      @name
    end

[Validate]