filechanges

package
v2026.1023.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	AddedLines, RemovedLines  map[string]int
	Name                      string
	Added, Removed            int
	Binary                    bool
	Lines                     map[string]int
	BeforeExists, AfterExists bool
}

func Compare

func Compare(before, after *Snapshot) ([]Change, error)

func ParsePatch

func ParsePatch(name string, output []byte) Change

type Commit

type Commit struct {
	Name  string
	Lines map[string]int
	Clean bool
}

Commit describes the paths committed by the current chat's own tool.

type Snapshot

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

Snapshots are private and outside the project: no index or worktree mutations.

func Capture

func Capture(root string) (*Snapshot, error)

func CapturePaths

func CapturePaths(root string, targets []string) (*Snapshot, error)

CapturePaths snapshots explicit tool targets, including ignored files and files outside the project. No file is ever copied through a ../ temp path.

func (*Snapshot) Close

func (s *Snapshot) Close()

func (*Snapshot) HasFileForTest

func (s *Snapshot) HasFileForTest(name string) bool

Jump to

Keyboard shortcuts

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