Sha256: 0a01b2461410560053e32b7efe69ff563a6940c977d10cf00326bdddfe8d209e

Contents?: true

Size: 347 Bytes

Versions: 114

Compression:

Stored size: 347 Bytes

Contents

Grit::Repo.class_eval do
  def remote_branches(remote = "origin")
    branches = self.remotes
    branches.reject!  { |r| r.name !~ %r(^#{remote}/) }
    branches.collect! { |r| r.name.split('/')[1] }
    branches.reject!  { |b| b == "HEAD" }
  end

  def find_common_ancestor(head1, head2)
    `git merge-base #{head1} #{head2}`.chomp
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
bard-1.3.9 features/support/grit_ext.rb
bard-1.3.8 features/support/grit_ext.rb
bard-1.3.7 features/support/grit_ext.rb
bard-1.3.6 features/support/grit_ext.rb
bard-1.3.5 features/support/grit_ext.rb
bard-1.3.4 features/support/grit_ext.rb
bard-1.3.3 features/support/grit_ext.rb
bard-1.3.2 features/support/grit_ext.rb
bard-1.3.1 features/support/grit_ext.rb
bard-1.3.0 features/support/grit_ext.rb
bard-1.2.0 features/support/grit_ext.rb
bard-1.1.2 features/support/grit_ext.rb
bard-1.1.1 features/support/grit_ext.rb
bard-1.1.0 features/support/grit_ext.rb
bard-1.0.8 features/support/grit_ext.rb
bard-1.0.7 features/support/grit_ext.rb
bard-1.0.6 features/support/grit_ext.rb
bard-1.0.5 features/support/grit_ext.rb
bard-1.0.4 features/support/grit_ext.rb
bard-1.0.3 features/support/grit_ext.rb