Sha256: 7747b42e9080accd99111676ebbe7a440f01f8fa792f02e60248c23eb28be926

Contents?: true

Size: 529 Bytes

Versions: 5

Compression:

Stored size: 529 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

          def commits = repository.commits("#{repository.branch_default}..#{name}")

          private

          attr_reader :repository
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
git-lint-2.4.0 lib/git/lint/branches/environments/local.rb
git-lint-2.3.3 lib/git/lint/branches/environments/local.rb
git-lint-2.3.2 lib/git/lint/branches/environments/local.rb
git-lint-2.3.1 lib/git/lint/branches/environments/local.rb
git-lint-2.3.0 lib/git/lint/branches/environments/local.rb