Method: Git::Status::StatusFile#initialize
- Defined in:
- lib/git/status.rb
#initialize(base, hash) ⇒ StatusFile
Returns a new instance of StatusFile.
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/git/status.rb', line 62 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 |