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.37.1 features/support/grit_ext.rb
bard-0.37.0 features/support/grit_ext.rb
bard-0.36.0 features/support/grit_ext.rb
bard-0.35.0 features/support/grit_ext.rb
bard-0.34.0 features/support/grit_ext.rb
bard-0.33.0 features/support/grit_ext.rb
bard-0.32.0 features/support/grit_ext.rb
bard-0.31.0 features/support/grit_ext.rb
bard-0.30.0 features/support/grit_ext.rb
bard-0.29.0 features/support/grit_ext.rb
bard-0.28.0 features/support/grit_ext.rb
bard-0.27.1 features/support/grit_ext.rb
bard-0.27.0 features/support/grit_ext.rb
bard-0.26.1 features/support/grit_ext.rb
bard-0.26.0 features/support/grit_ext.rb
bard-0.25.3 features/support/grit_ext.rb
bard-0.25.2 features/support/grit_ext.rb
bard-0.25.1 features/support/grit_ext.rb
bard-0.25.0 features/support/grit_ext.rb
bard-0.24.6 features/support/grit_ext.rb