struct
Agate::Diff::Delta
- Agate::Diff::Delta
- Struct
- Value
- Object
Overview
The status and file info for a single changed entry.
Defined in:
agate/diff.crConstructors
Instance Method Summary
-
#added? : Bool
Returns true if the file was added.
-
#binary? : Bool
Returns true if the delta involves binary content.
- #clone
-
#copied? : Bool
Returns true if the file was copied.
- #copy_with(status _status = @status, old_file _old_file = @old_file, new_file _new_file = @new_file, similarity _similarity = @similarity, flags _flags = @flags)
-
#deleted? : Bool
Returns true if the file was deleted.
- #flags : UInt32
-
#ignored? : Bool
Returns true if the file is ignored.
-
#modified? : Bool
Returns true if the file was modified.
- #new_file : File
- #old_file : File
-
#renamed? : Bool
Returns true if the file was renamed.
- #similarity : UInt16
- #status : Delta::Status
-
#typechange? : Bool
Returns true if the file type changed.
-
#untracked? : Bool
Returns true if the file is untracked.
Constructor Detail
def self.new(status : Delta::Status, old_file : File, new_file : File, similarity : UInt16, flags : UInt32)
#
Instance Method Detail
def copy_with(status _status = @status, old_file _old_file = @old_file, new_file _new_file = @new_file, similarity _similarity = @similarity, flags _flags = @flags)
#