git

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(path string) (compare.Pass, error)

Compare takes a path to a git repository and returns errors between HEAD and HEAD~ for any incompatible Thrift changes between the two shas.

Types

type FS

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

FS holds reference to components needed for git FS.

func NewGitFS

func NewGitFS(gitDir string, repo *git.Repository, tree *object.Tree) *FS

NewGitFS creates an implementation of FS to use git to discover Thrift changes and previous version of a Thrift file.

func (FS) Abs

func (fs FS) Abs(p string) (string, error)

Abs returns absolute path to a file.

func (FS) Read

func (fs FS) Read(path string) ([]byte, error)

Jump to

Keyboard shortcuts

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