import "code.gitea.io/gitea/modules/gitgraph"
graph.go graph_models.go parser.go
RelationCommit represents an empty relation commit
type Commit struct { Commit *git.Commit User *models.User Verification *models.CommitVerification Status *models.CommitStatus Flow int64 Row int Column int Refs []git.Reference Rev string Date string ShortRev string Subject string }
Commit represents a commit at co-ordinate X, Y with the data
NewCommit creates a new commit from a provided line
OnlyRelation returns whether this a relation only commit
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
NewFlow creates a new flow
AddGlyph adds glyph at row and column
Color16 wraps the color numbers around mod 16
Glyph represents a co-ordinate and glyph
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(r *git.Repository, page int, maxAllowedColors int, hidePRRefs bool, branches, files []string) (*Graph, error)
GetCommitGraph return a list of commit (GraphItems) from all branches
NewGraph creates a basic graph
AddCommit adds a commit at row, column on flowID with the provided data
AddGlyph adds glyph to flows
Height returns the height of the graph
func (graph *Graph) LoadAndProcessCommits(repository *models.Repository, gitRepo *git.Repository) error
LoadAndProcessCommits will load the git.Commits for each commit in the graph, the associate the commit with the user author, and check the commit verification before finally retrieving the latest status
Width returns the width of the graph
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.
AddLineToGraph adds the line as a row to the graph
ParseGlyphs parses the provided glyphs and sets the internal state
Reset resets the internal parser state.
Package gitgraph imports 10 packages (graph) and is imported by 5 packages. Updated 2021-01-22. Refresh now. Tools for package owners.