Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: Apache-2.0, MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffLines added in v0.14.0

type DiffLines []git.DiffLine

func (DiffLines) Len added in v0.14.0

func (diffLines DiffLines) Len() int

Len return length of diffLines

func (DiffLines) Less added in v0.14.0

func (diffLines DiffLines) Less(i, j int) bool

Less function

func (DiffLines) Swap added in v0.14.0

func (diffLines DiffLines) Swap(i, j int)

Swap function

type FileBlame added in v0.14.0

type FileBlame struct {
	Idx   int
	It    *list.Element
	Lines *list.List
}

func NewFileBlame added in v0.14.0

func NewFileBlame() (*FileBlame, error)

func (*FileBlame) AddLine added in v0.14.0

func (fb *FileBlame) AddLine(num int, commit string)

AddLine Add a line at a specific line num

func (*FileBlame) Find added in v0.14.0

func (fb *FileBlame) Find(num int) *list.Element

Find an element with specific line number

func (*FileBlame) RemoveLine added in v0.14.0

func (fb *FileBlame) RemoveLine(num int)

RemoveLine remove a line at num

func (*FileBlame) Walk added in v0.14.0

func (fb *FileBlame) Walk(num int)

Walk to a specific index

type Store

type Store interface {
	RepoCommits(repoCommit *code.RepoCommit) errors.Error
	Commits(commit *code.Commit) errors.Error
	Refs(ref *code.Ref) errors.Error
	CommitFiles(file *code.CommitFile) errors.Error
	CommitParents(pp []*code.CommitParent) errors.Error
	CommitFileComponents(commitFileComponent *code.CommitFileComponent) errors.Error
	CommitLineChange(commitLineChange *code.CommitLineChange) errors.Error
	RepoSnapshot(snapshot *code.RepoSnapshot) errors.Error
	Close() errors.Error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL