struct

Tui::CommitInfo

Inherits Struct / Value / Object

Commit metadata for display in DiffView header

Constructors

new(hash : String = "", short_hash : String = "", message : String = "", author : String = "", date : String = "", parents : Array(String) = [] of String)
Source

Instance methods

author
Source
author=(author : String)
Source
date
Source
date=(date : String)
Source
empty?
Source
hash

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.

Source
hash=(hash : String)
Source
header_lines

Number of header lines needed for display

Source
message
Source
message=(message : String)
Source
parents
Source
parents=(parents : Array(String))
Source
short_hash
Source
short_hash=(short_hash : String)
Source