repo

package
v0.0.0-...-ca61a64 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckpointReader

type CheckpointReader struct {
	// contains filtered or unexported fields
}

func NewCheckpointReader

func NewCheckpointReader(logger logger.Logger) *CheckpointReader

func (*CheckpointReader) Read

func (s *CheckpointReader) Read(dir string, expectedCommit string) (Repo, error)

type CheckpointWriter

type CheckpointWriter struct {
	// contains filtered or unexported fields
}

func NewCheckpointWriter

func NewCheckpointWriter(logger logger.Logger) *CheckpointWriter

func (*CheckpointWriter) Write

func (s *CheckpointWriter) Write(repo Repo, dir string, lastCommit string) error

type ErrCheckpointNotExpected

type ErrCheckpointNotExpected struct {
	CheckpointDir string
	WantCommit    string
	HaveCommit    string
}

func (ErrCheckpointNotExpected) Error

func (s ErrCheckpointNotExpected) Error() string

type Repo

type Repo map[string]map[string]*incblame.Blame

func New

func New() Repo

func (Repo) AddCommit

func (s Repo) AddCommit(commitHash string)

func (Repo) CommitsInMemory

func (s Repo) CommitsInMemory() int

func (Repo) Debug

func (s Repo) Debug() string

func (Repo) GetCommitMust

func (s Repo) GetCommitMust(commitHash string) map[string]*incblame.Blame

func (Repo) GetFileMust

func (s Repo) GetFileMust(commitHash string, filePath string) (*incblame.Blame, error)

func (Repo) GetFileOptional

func (s Repo) GetFileOptional(commitHash string, filePath string) *incblame.Blame

type Unloader

type Unloader struct {
	// contains filtered or unexported fields
}

func NewUnloader

func NewUnloader(repo Repo) *Unloader

func (*Unloader) Unload

func (s *Unloader) Unload(commitHash string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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