git

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubCmdPrefix = "git-"
)

Variables

This section is empty.

Functions

func Commit

func Commit(msg []byte, opts *Options) (string, error)

func ExecPath

func ExecPath() (string, error)

func InitSubCmd

func InitSubCmd(src, subname string) (string, error)

func IsGitRepo

func IsGitRepo() (bool, error)

func WorkingTreeRoot

func WorkingTreeRoot() (path string, err error)

WorkingTreeRoot return path of the top-level directory of the working tree

Types

type Options

type Options struct {
	SignOff bool
	Add     bool
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(f *pflag.FlagSet)

Jump to

Keyboard shortcuts

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