Method: Git::Status::StatusFile#initialize

Defined in:
lib/git/status.rb

#initialize(base, hash) ⇒ StatusFile

Returns a new instance of StatusFile.



133
134
135
136
137
138
139
140
141
142
143
# File 'lib/git/status.rb', line 133

def initialize(base, hash)
  @base = base
  @path = hash[:path]
  @type = hash[:type]
  @stage = hash[:stage]
  @mode_index = hash[:mode_index]
  @mode_repo = hash[:mode_repo]
  @sha_index = hash[:sha_index]
  @sha_repo = hash[:sha_repo]
  @untracked = hash[:untracked]
end