gitlet

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Repo *git.Repository

Functions

func AddAll

func AddAll(dir string) error

func GetDiff

func GetDiff() (string, error)

func GetFileList

func GetFileList() (string, error)

func Init added in v1.6.0

func Init()

func Push added in v1.6.0

func Push(_ *cli.Context) 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 Message added in v1.6.0

type Message struct {
	Msg string
	object.Signature
}

func NewGitInfo

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

func (*Message) Commit added in v1.6.0

func (gi *Message) Commit() error

Jump to

Keyboard shortcuts

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