gitexe

package
v0.0.0-...-e3c6483 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executable

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

func New

func New(path string, look bool) (*Executable, error)

func (*Executable) Check

func (exe *Executable) Check() error

func (*Executable) Repo

func (exe *Executable) Repo(repo string) *Repo

type Repo

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

func (*Repo) CommitHashesInRange

func (repo *Repo) CommitHashesInRange(rawRange string, paths []string) (commits []plumbing.Hash, rerr error)

The 'range' argument supports anything accepted in the <revision-range> argument to 'git log': foo..bar, foo...bar, etc.

func (*Repo) MergeBases

func (repo *Repo) MergeBases(rev1, rev2 plumbing.Revision) (commonAncestors []plumbing.Hash, rerr error)

go-git's function for this is horrifically slow on a large-enough repo, 5 to 6 seconds for simple cases.

Jump to

Keyboard shortcuts

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