git

package
v0.0.0-...-94dab6a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Hash     string
	Author   string
	Date     time.Time
	Message  string
	RepoPath string
	Pushed   bool
}

func (*Commit) ShortHash

func (c *Commit) ShortHash() string

type Repo

type Repo struct {
	Path string
}

func (*Repo) GetAllCommits

func (r *Repo) GetAllCommits(since time.Time) ([]Commit, error)

func (*Repo) GetCommits

func (r *Repo) GetCommits(revision string, since time.Time) ([]Commit, error)

func (*Repo) GetPushedCommits

func (r *Repo) GetPushedCommits(since time.Time) ([]Commit, error)

func (*Repo) GetUnpushedCommits

func (r *Repo) GetUnpushedCommits(since time.Time) ([]Commit, error)

func (*Repo) IsCommitPushed

func (r *Repo) IsCommitPushed(hash string) bool

Jump to

Keyboard shortcuts

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