class

Tui::DiffFile

Inherits Reference / Object

Represents a file in a diff

Constructors

new(old_path : String = "", new_path : String = "")
Source

Instance methods

additions

Statistics

Source
binary=(binary : Bool)
Source
binary?
Source
collapsed=(collapsed : Bool)
Source
collapsed?
Source
deleted_file=(deleted_file : Bool)
Source
deleted_file?
Source
deletions
Source
display_path

Display path (prefer new path, handle renames)

Source
hunks
Source
hunks=(hunks : Array(DiffHunk))
Source
new_file=(new_file : Bool)
Source
new_file?
Source
new_path
Source
new_path=(new_path : String)
Source
old_path
Source
old_path=(old_path : String)
Source
renamed=(renamed : Bool)
Source
renamed?
Source