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.49.0 features/support/grit_ext.rb
bard-0.48.1 features/support/grit_ext.rb
bard-0.48.0 features/support/grit_ext.rb
bard-0.47.0 features/support/grit_ext.rb
bard-0.46.0 features/support/grit_ext.rb
bard-0.45.1 features/support/grit_ext.rb
bard-0.45.0 features/support/grit_ext.rb
bard-0.44.2 features/support/grit_ext.rb
bard-0.44.1 features/support/grit_ext.rb
bard-0.44.0 features/support/grit_ext.rb
bard-0.43.2 features/support/grit_ext.rb
bard-0.43.0 features/support/grit_ext.rb
bard-0.42.0 features/support/grit_ext.rb
bard-0.41.2 features/support/grit_ext.rb
bard-0.41.1 features/support/grit_ext.rb
bard-0.41.0 features/support/grit_ext.rb
bard-0.40.1 features/support/grit_ext.rb
bard-0.40.0 features/support/grit_ext.rb
bard-0.39.0 features/support/grit_ext.rb
bard-0.38.0 features/support/grit_ext.rb