Sha256: 08fc70477d681ca0e3b6e4c4e4a62a84954f230d63b0014c625b125111dcb573

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 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>get_patch (Grit::Git)</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/grit/git.rb, line 160</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_patch</span>(<span class="ruby-identifier">applies_sha</span>)
      <span class="ruby-identifier">git_index</span> = <span class="ruby-identifier">create_tempfile</span>(<span class="ruby-value str">'index'</span>, <span class="ruby-keyword kw">true</span>)
      (<span class="ruby-identifier">patch</span>, <span class="ruby-identifier">exit2</span>) = <span class="ruby-identifier">raw_git</span>(<span class="ruby-node">&quot;git diff #{applies_sha}^ #{applies_sha}&quot;</span>, <span class="ruby-identifier">git_index</span>)
      <span class="ruby-identifier">patch</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ginst-2009.12.8 vendor/plugins/grit/doc/classes/Grit/Git.src/M000502.html
ginst-2009.11.24 vendor/plugins/grit/doc/classes/Grit/Git.src/M000502.html
ginst-2009.11.23 vendor/plugins/grit/doc/classes/Grit/Git.src/M000502.html
ginst-2.0.1 vendor/plugins/grit/doc/classes/Grit/Git.src/M000502.html
ginst-2.0.0 vendor/plugins/grit/doc/classes/Grit/Git.src/M000502.html