Sha256: 6d314f962a53b80f1bd2cb4fc69228f7e16505628227c4ce0131f15a3229eec3
Contents?: true
Size: 1.24 KB
Versions: 5
Compression:
Stored size: 1.24 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_object_by_sha1 (Grit::GitRuby::Repository)</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-ruby/repository.rb, line 104</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_object_by_sha1</span>(<span class="ruby-identifier">sha1</span>) <span class="ruby-identifier">r</span> = <span class="ruby-identifier">get_raw_object_by_sha1</span>(<span class="ruby-identifier">sha1</span>) <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">r</span> <span class="ruby-constant">GitObject</span>.<span class="ruby-identifier">from_raw</span>(<span class="ruby-identifier">r</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
5 entries across 5 versions & 1 rubygems