Sha256: 063d8984a60872c6195ad85abf3406ec19d1ea1fcacb43c74a83e2849fb8374a

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

module GitWrapper
  module Results
    module FileStatus
      STATUSES = {
          'A' => :new_file,
          'M' => :modified,
          'D' => :deleted,
          'R' => :renamed,
          'U' => :merge_conflict,
          'C' => :copied,
          'T' => :type_changed,
          'X' => :unknown
      }

      def self.value_of(char)
        return :untracked unless STATUSES.key?(char)
        STATUSES[char]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_wrapper-1.0.0 lib/git_wrapper/results/file_status.rb