Sha256: 8f9f7abb737537d6f48529cc183764d1d8943e21d41b5dc328209d2c448ee135

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 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>branch_current (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 96</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch_current</span>
      <span class="ruby-identifier">branches_all</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] }.<span class="ruby-identifier">first</span>[<span class="ruby-value">0</span>] <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</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/M000033.html
git-1.0.2 doc/classes/Git/Lib.src/M000033.html
git-1.0.3 doc/classes/Git/Lib.src/M000033.html
git-1.0.4 doc/classes/Git/Lib.src/M000033.html
git-1.0.5 doc/classes/Git/Lib.src/M000033.html