gitlet

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAll

func AddAll(dir string) error

func GetDiff

func GetDiff() (string, error)

func GetFileList

func GetFileList() (string, error)

func RunCommand

func RunCommand(cmd string, dir string) (string, error)

RunCommand executes a command and waits for its output specially done because git is messing up STDOUT and STDERR, see this: https://github.com/cli/cli/issues/2984

func UpdateGitIgnore

func UpdateGitIgnore() error

Types

type GitInfo

type GitInfo struct {
	Repo *git.Repository
	Msg  string
	object.Signature
}

func NewGitInfo

func NewGitInfo(msg string) (*GitInfo, error)

func (*GitInfo) Commit

func (gi *GitInfo) Commit() error

Jump to

Keyboard shortcuts

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