Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RelationCommit = &Commit{
Row: -1,
}
RelationCommit represents an empty relation commit
Functions ¶
This section is empty.
Types ¶
type Commit ¶ added in v1.13.0
type Commit struct { Flow int64 Row int Column int Branch string Rev string Date string Author string AuthorEmail string ShortRev string Subject string }
Commit represents a commit at co-ordinate X, Y with the data
func (*Commit) OnlyRelation ¶ added in v1.13.0
OnlyRelation returns whether this a relation only commit
type Flow ¶ added in v1.13.0
type Flow struct { ID int64 ColorNumber int Glyphs []Glyph Commits []*Commit MinRow int MinColumn int MaxRow int MaxColumn int }
Flow represents a series of glyphs
type Graph ¶ added in v1.13.0
type Graph struct { Flows map[int64]*Flow Commits []*Commit MinRow int MinColumn int MaxRow int MaxColumn int // contains filtered or unexported fields }
Graph represents a collection of flows
func GetCommitGraph ¶
GetCommitGraph return a list of commit (GraphItems) from all branches
func (*Graph) AddCommit ¶ added in v1.13.0
AddCommit adds a commit at row, column on flowID with the provided data
type Parser ¶ added in v1.13.0
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a git graph parser. It is stateful containing the previous glyphs, detected flows and color assignments.
func (*Parser) AddLineToGraph ¶ added in v1.13.0
AddLineToGraph adds the line as a row to the graph
func (*Parser) ParseGlyphs ¶ added in v1.13.0
ParseGlyphs parses the provided glyphs and sets the internal state
Click to show internal directories.
Click to hide internal directories.