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