Sha256: 07e98cbaa79c21b32439f18fe71f93be8a66e83b5460d6e4a8039725c784740a

Contents?: true

Size: 474 Bytes

Versions: 3

Compression:

Stored size: 474 Bytes

Contents

module GitWrapper
  module Results
    class LogInfo

      def initialize(attributes)
        @attributes = attributes
      end

      Commands::Log::ATTRIBUTES.keys.each do |name|
        define_method name do
          @attributes[name]
        end
      end

      def parents
        parent_hashes.split
      end

      def abbreviated_parents
        abbreviated_parent_hashes.split
      end

      def merge?
        parents.length == 2
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
git_wrapper-1.1.2 lib/git_wrapper/results/log_info.rb
git_wrapper-1.1.1 lib/git_wrapper/results/log_info.rb
git_wrapper-1.1.0 lib/git_wrapper/results/log_info.rb