Sha256: c7a56c4bf2db75dd3622a245158cd63ce6a0b4213f2318d1866eadf7de498157

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Commits
      module Hosts
        # Provides local feature branch information.
        class Local
          include Dependencies[:git]

          def call = git.commits "#{branch_default}..#{branch_name}"

          private

          def branch_default = git.branch_default.value_or nil

          def branch_name = git.branch_name.value_or nil
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-lint-9.1.0 lib/git/lint/commits/hosts/local.rb
git-lint-9.0.0 lib/git/lint/commits/hosts/local.rb