Class: GitCli::Delta::StagedFile

Inherits:
VCSItem
  • Object
show all
Defined in:
lib/git_cli/delta.rb

Instance Attribute Summary

Attributes inherited from VCSItem

#full, #path, #type

Instance Method Summary collapse

Methods inherited from VCSItem

#<=>, #==

Constructor Details

#initialize(path, full) ⇒ StagedFile

Returns a new instance of StagedFile.



108
109
110
# File 'lib/git_cli/delta.rb', line 108

def initialize(path, full)
  super(:file, path, full)
end

Instance Method Details

#to_sObject



111
112
113
# File 'lib/git_cli/delta.rb', line 111

def to_s
  "[S] #{@path}"
end