git

package module
v0.0.0-...-0c481e8 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangelogOption

type ChangelogOption struct {
	// Start reference to filter commits (default is latest tag)
	Start string

	// Stop reference to filter commits (default is HEAD)
	Stop string

	// Version is custom version tag of Stop reference
	Version string
}

type Repo

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

func Create

func Create(path string) (*Repo, error)

Create will run `git init`

func New

func New(path string) (*Repo, error)

func (*Repo) Branches

func (r *Repo) Branches() (branches []string)

func (*Repo) Changelog

func (r *Repo) Changelog(option *ChangelogOption) (*models.ChangeLog, error)

func (*Repo) CliCommit

func (r *Repo) CliCommit(msg *models.CommitMessage, args ...string) (string, error)

CliCommit will execute raw git command instead go-git module

func (*Repo) Commit

func (r *Repo) Commit(msg *models.CommitMessage) (string, error)

Commit create commit message to repository and return commit hash

func (*Repo) IsClean

func (r *Repo) IsClean() bool

func (*Repo) Path

func (r *Repo) Path() string

func (*Repo) String

func (r *Repo) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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