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-0.59.1 features/support/grit_ext.rb
bard-0.59.0 features/support/grit_ext.rb
bard-0.58.0 features/support/grit_ext.rb
bard-0.57.0 features/support/grit_ext.rb
bard-0.56.0 features/support/grit_ext.rb
bard-0.55.0 features/support/grit_ext.rb
bard-0.54.0 features/support/grit_ext.rb
bard-0.53.0 features/support/grit_ext.rb
bard-0.52.2 features/support/grit_ext.rb
bard-0.52.1 features/support/grit_ext.rb
bard-0.52.0 features/support/grit_ext.rb
bard-0.51.2 features/support/grit_ext.rb
bard-0.51.1 features/support/grit_ext.rb
bard-0.51.0 features/support/grit_ext.rb
bard-0.50.5 features/support/grit_ext.rb
bard-0.50.4 features/support/grit_ext.rb
bard-0.50.3 features/support/grit_ext.rb
bard-0.50.2 features/support/grit_ext.rb
bard-0.50.1 features/support/grit_ext.rb
bard-0.50.0 features/support/grit_ext.rb