diff options
author | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-09 13:11:22 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-09 13:11:22 -0800 |
commit | 9d59d2965184964ab6662282ef5f9ceac2c58552 (patch) | |
tree | f8dd8bf4004eb9403f9ffe2b5c5c708ef877895a /lib/git/remote.rb | |
parent | ab20a674e50268b6c541949c746d77b16a26d15c (diff) | |
download | third_party-ruby-git-9d59d2965184964ab6662282ef5f9ceac2c58552.tar.gz third_party-ruby-git-9d59d2965184964ab6662282ef5f9ceac2c58552.tar.xz third_party-ruby-git-9d59d2965184964ab6662282ef5f9ceac2c58552.zip |
added branches, more log stuff, better tests, changed the log api a bit
added tests for Git::Lib, started Git::Diff development
Diffstat (limited to 'lib/git/remote.rb')
-rw-r--r-- | lib/git/remote.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/git/remote.rb b/lib/git/remote.rb new file mode 100644 index 0000000..6956d47 --- /dev/null +++ b/lib/git/remote.rb @@ -0,0 +1,21 @@ +module Git + class Remote < Path + + attr_accessor :name, :url, :fetch + + @base = nil + + def initialize(base, name) + @base = base + config = @base.lib.config_remote(name) + @name = name + @url = config['url'] + @fetch = config['fetch'] + end + + def to_s + @name + end + + end +end
\ No newline at end of file |