Help us shape the future of Go! Take the 2026 Go Developer Survey

vcs

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitSummary added in v0.26.0

type CommitSummary struct {
	Hash      string
	ShortHash string
	Subject   string
	Author    string
	Email     string
	Timestamp time.Time
}

CommitSummary is compact commit metadata for repository history transitions.

type ContentReader

type ContentReader func(filePath string) ([]byte, error)

ContentReader is a function that reads file content given a file path. This allows the caller to control how files are read (filesystem, git, etc.)

func FilesystemContentReader

func FilesystemContentReader() ContentReader

FilesystemContentReader returns a ContentReader that reads from the filesystem.

type FileDiff added in v0.22.0

type FileDiff struct {
	Additions []int
	Deletions []int
	IsNew     bool
	IsDeleted bool
	IsRenamed bool
}

FileDiff carries per-line change data for a single file. Line numbers are 1-indexed: Additions reference the post-image (new content), Deletions reference the pre-image (old content).

type FileStats

type FileStats struct {
	Additions int
	Deletions int
	IsNew     bool
}

FileStats represents statistics for a file (additions and deletions)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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