Sha256: 99c1c782611c7b597a5e974372f244444cdd5c85c2d2b5532855a0889e3635ba
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Branches module Environments # Provides local build environment feature branch information. class Local def initialize repository: GitPlus::Repository.new @repository = repository end def name repository.branch_name end def commits repository.commits "master..#{name}" end private attr_reader :repository end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git-lint-2.1.0 | lib/git/lint/branches/environments/local.rb |
git-lint-2.0.0 | lib/git/lint/branches/environments/local.rb |