vcs

package
v0.0.0-...-4b11ea6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name  string
	Email string
}

type Commit

type Commit struct {
	ShortHash   string
	Hash        string
	Message     string
	Summary     string
	Description string
	Author      Author
	Date        time.Time
	Link        *url.URL
	// contains filtered or unexported fields
}
func (c *Commit) MakeFileLink(filename string) *url.URL

type Options

type Options struct {
	LocalPath string
	RemoteURL config.URL
	Branch    string
}

type Repository

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

func CloneOrOpen

func CloneOrOpen(cfg *Options, log *log.Logger) (*Repository, bool, error)

func (*Repository) Clean

func (r *Repository) Clean(wt *git.Worktree) error

func (*Repository) GetFileLog

func (r *Repository) GetFileLog(filename string) ([]*Commit, error)

func (*Repository) HeadSHA

func (r *Repository) HeadSHA() string

func (*Repository) Update

func (r *Repository) Update(rev string) (bool, error)

Jump to

Keyboard shortcuts

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