commit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHandle

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

func NewHandle

func NewHandle() (*GitHandle, error)

NewHandle opens the git repository in the current directory.

func (*GitHandle) AutoCommit

func (g *GitHandle) AutoCommit(paths []string, message string) error

AutoCommit stages and commits files if the auto-commit feature is enabled.

func (*GitHandle) Commit

func (g *GitHandle) Commit(message string) error

Commit creates a new commit with the given message.

func (*GitHandle) Stage

func (g *GitHandle) Stage(paths []string, oldPaths []string) error

Stage adds the given paths to the git staging area.

Jump to

Keyboard shortcuts

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