Sha256: 4987012fc225888417ca5582ce2a562a03f5406b2a71a8eb86cfd86022a9df5d

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Commits
      module Hosts
        # Provides local feature branch information.
        class Local
          include Git::Lint::Import[: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

3 entries across 3 versions & 1 rubygems

Version Path
git-lint-7.2.0 lib/git/lint/commits/hosts/local.rb
git-lint-7.1.0 lib/git/lint/commits/hosts/local.rb
git-lint-7.0.0 lib/git/lint/commits/hosts/local.rb