git

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changes added in v0.57.0

type Changes struct {
	// Map of file paths to the changes made to the file
	// The key is the file path and the value is the change
	Additions map[string][]byte

	// List of file paths that were deleted
	Deletions []string

	// OldHash is the hash of the previous commit
	OldHash string
}

Changes represents the changes made to a repository

type CommitAuthor added in v0.33.0

type CommitAuthor struct {
	Name  string
	Email string
}

CommitAuthor is the data (name and email) used when a commit is made

type Config added in v0.33.0

type Config struct {
	// Absolute path to the directory
	Directory string
	// The fetch depth used when cloning, if set to 0, the entire history will be used
	FetchDepth int
}

Config is configuration for any git implementation

type LastCommitChecker added in v0.57.0

type LastCommitChecker interface {
	LastCommitChanges() (Changes, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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