Sha256: e18f7b4ecd9b6ef1476f0f5bf1335739588fed7dab22d29444977f90df3745a3

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module Git
    module AutoCommit
      class CommitInfo
        enable_immutable

        immutable_accessor :fixup

        def git_commit_args
          r = fixup.if_present([]) { |v| ['--fixup', v.sha1] }
          return r if r.any?

          raise 'Argument list is empty'
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
avm-tools-0.93.0 lib/avm/git/auto_commit/commit_info.rb
avm-tools-0.92.0 lib/avm/git/auto_commit/commit_info.rb