Sha256: 91d83b6653cbeb231cf44b85cc65c1211a8daa2f1048a1d68248a7cb397b1ec3

Contents?: true

Size: 1.56 KB

Versions: 5

Compression:

Stored size: 1.56 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>remote_add (Git::Lib)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 267</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remote_add</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">opts</span> = {})
      <span class="ruby-identifier">arr_opts</span> = [<span class="ruby-value str">'add'</span>]
      <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'-f'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:with_fetch</span>]
      <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">name</span>
      <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">url</span>
      
      <span class="ruby-identifier">command</span>(<span class="ruby-value str">'remote'</span>, <span class="ruby-identifier">arr_opts</span>)
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
git-1.0.1 doc/classes/Git/Lib.src/M000052.html
git-1.0.3 doc/classes/Git/Lib.src/M000052.html
git-1.0.2 doc/classes/Git/Lib.src/M000052.html
git-1.0.4 doc/classes/Git/Lib.src/M000052.html
git-1.0.5 doc/classes/Git/Lib.src/M000052.html