Sha256: 39f9feea61ad77781041ae56409a6559cee2d91cb83ad088eed9b6498567f2de
Contents?: true
Size: 1.71 KB
Versions: 5
Compression:
Stored size: 1.71 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>check_applies (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 153</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check_applies</span>(<span class="ruby-identifier">head_sha</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">o1</span>, <span class="ruby-identifier">exit1</span>) = <span class="ruby-identifier">raw_git</span>(<span class="ruby-node">"git read-tree #{head_sha} 2>/dev/null"</span>, <span class="ruby-identifier">git_index</span>) (<span class="ruby-identifier">o2</span>, <span class="ruby-identifier">exit2</span>) = <span class="ruby-identifier">raw_git</span>(<span class="ruby-node">"git diff #{applies_sha}^ #{applies_sha} | git apply --check --cached >/dev/null 2>/dev/null"</span>, <span class="ruby-identifier">git_index</span>) <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">exit1</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">exit2</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
5 entries across 5 versions & 1 rubygems