Sha256: 660d2582bb95a0799adb8134d4ff8723c69767626b772b0c75fe226848371147

Contents?: true

Size: 471 Bytes

Versions: 114

Compression:

Stored size: 471 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, :message

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

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

Version data entries

114 entries across 114 versions & 4 rubygems

Version Path
eac_tools-0.49.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.48.1 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.48.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.47.2 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.47.1 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
avm-git-0.10.1 lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.47.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.46.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.45.2 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.45.1 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.45.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.44.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.43.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.42.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
avm-git-0.10.0 lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.41.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.40.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
avm-git-0.9.0 lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.39.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb
eac_tools-0.38.0 sub/avm-git/lib/avm/git/auto_commit/commit_info.rb