From 646304a6e7c3b2c442a0a7db995629e7009c3a14 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Sun, 11 Nov 2007 17:59:18 -0800 Subject: added documentation and a license file --- doc/classes/Git/Lib.src/M000040.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/classes/Git/Lib.src/M000040.html (limited to 'doc/classes/Git/Lib.src/M000040.html') diff --git a/doc/classes/Git/Lib.src/M000040.html b/doc/classes/Git/Lib.src/M000040.html new file mode 100644 index 0000000..9eeed74 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000040.html @@ -0,0 +1,23 @@ + + + + + + config_remote (Git::Lib) + + + + +
# File lib/git/lib.rb, line 187
+    def config_remote(name)
+      hsh = {}
+      command_lines('config', ['--get-regexp', "remote.#{name}"]).each do |line|
+        (key, value) = line.split
+        hsh[key.gsub("remote.#{name}.", '')] = value
+      end
+      hsh
+    end
+ + \ No newline at end of file -- cgit